Git Range Notation “..”

Here’s how NOT to read the following: 

git log master..origin/master

“Show me all commits from branch ‘master’ to branch ‘origin/master’ that are reachable”

Here’s the CORRECT WAY to read it:

“Show me all commits from branch ‘master’ to branch ‘origin/master’ that are UNREACHABLE”

That command will tell you what – if any – commits you WOULD merge in if you ran:

git checkout master
git merge origin/master

If you’re a Linux SYSADMIN and want to get started with Git,

Here’s my in progress Git playlist:

Leave a comment