Reviewing new commits merged into master
This protip may sound very simple, yet to be honest, this essential habit to know what comes into master didn’t stick. Web development is rapid and changing in nature, so during the ‘grind’ it is easy to forget about those simple things. I’m going to give it another try, though.
OK, without further ado; with newer version of Git you can type:
git le head --not origin/master
Where head
is your feature branch. Previously you could use this:
git le origin/master..head
For me it is easier to remember the first one. What’s you choice?
Written by Wojtek Ryrych
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#