有git branch -av
命令的输出。现在我在dev
树枝上。
***dev** 3f126e0 Comment...
master 7a47db8 Another comment...
remotes/origin/HEAD -> origin/master
remotes/origin/dev 3f126e0 Comment...
remotes/origin/master 7a47db8 Another comment...
来自 Scott Checkon 的 Pro Git 一书。
How does Git know what branch you’re currently on? It keeps a special pointer called HEAD.
为什么我在上时会HEAD
指向?origin/master
dev