What is HEAD in Git?

后端 未结 22 2258
野的像风
野的像风 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 10:48

    These two may confusing you:

    head

    Pointing to named references a branch recently submitted. Unless you use the package reference , heads typically stored in $ GIT_DIR/refs/heads/.

    HEAD

    Current branch, or your working tree is usually generated from the tree HEAD is pointing to. HEAD must point to a head, except you are using a detached HEAD.

提交回复
热议问题