HEAD and ORIG_HEAD in Git

前端 未结 4 1822
借酒劲吻你
借酒劲吻你 2020-11-22 02:25

What do these symbols refer to and what do they mean?

(I can\'t find any explanation in official documentation)

4条回答
  •  耶瑟儿~
    2020-11-22 02:42

    My understanding is that HEAD points the current branch, while ORIG_HEAD is used to store the previous HEAD before doing "dangerous" operations.

    For example git-rebase and git-am record the original tip of branch before they apply any changes.

提交回复
热议问题