There is the output of git branch -av
command. Now I am on the dev
branch.
***dev** 3f126e0 Comment...
master 7a47db8 Another comment...
remotes/origin/HEAD -> origin/master
remotes/origin/dev 3f126e0 Comment...
remotes/origin/master 7a47db8 Another comment...
From the book Pro Git by Scott Checkon.
How does Git know what branch you’re currently on? It keeps a special pointer called HEAD.
Why does HEAD
point to origin/master
while I am on dev
?