What is HEAD in Git?

后端 未结 22 2262
野的像风
野的像风 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:32

    I think 'HEAD' is current check out commit. In other words 'HEAD' points to the commit that is currently checked out.

    If you have just cloned and not checked out I don't know what it points to, probably some invalid location.

提交回复
热议问题