HEADnames the commit on which you based the changes in the working tree.FETCH_HEADrecords the branch which you fetched from a remote repository with your last git fetch invocation.ORIG_HEADis created by commands that move yourHEADin a drastic way, to record the position of theHEADbefore their operation, so that you can easily change the tip of the branch back to the state before you ran them.MERGE_HEADrecords the commit(s) which you are merging into your branch when you run git merge.CHERRY_PICK_HEADrecords the commit which you are cherry-picking when you run git cherry-pick.
From the git source, you can also find out about
BISECT_HEAD, REVERT_HEAD, REJECT_NON_FF_HEAD and several others that you will almost certainly never need.
That reference also explains suffixes (
^N, ~N, @{...}), ranges (.. vs ...), and more.
Ref: stackoverflow
No comments:
Post a Comment