What is HEAD in Git?

后端 未结 22 2041
野的像风
野的像风 2020-11-22 10:02

You see the Git documentation saying things like

The branch must be fully merged in HEAD.

But what is Git HEAD exac

22条回答
  •  旧时难觅i
    2020-11-22 10:32

    HEAD actually is just a file for storing current branch info

    and if you use HEAD in your git commands you are pointing to your current branch

    you can see the data of this file by cat .git/HEAD

提交回复
热议问题