dorawyy / git-merge-conflicts-test

This repo is for testing of git functionalities / different merging conflict scenarios, and CI tools usage
2 stars 4 forks source link

[concept] ORIG_HEAD, FETCH_HEAD, MERGE_HEAD etc #65

Open dorawyy opened 6 years ago

dorawyy commented 6 years ago

ORIG_HEAD, FETCH_HEAD, MERGE_HEAD etc - stackoverflow

git help revisions brings up gitrevisions documentation, which describes all the the most common ways to reference commits:

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.