问题
What does the the arrow (->) mean here:
* development
master
production
remotes/origin/HEAD -> origin/production
remotes/origin/development
remotes/origin/master
remotes/origin/production
I'm just trying to get a real handle on git, so I'm diggin' deep and finding out that the further I go, the less I know about git, haha.
回答1:
remotes/origin/HEAD -> origin/production
means
remotes/origin/HEAD is pointing to origin/production
origin/HEAD is not a self-contained branch. It is just a pointer to the "main" branch, the one you get after a clone.
Try git symbolic-ref refs/heads/foo refs/heads/master. Afterwards git branch will show:
foo -> master
Then foo is just another name for master.
来源:https://stackoverflow.com/questions/22363543/understanding-git-branch-all