Is it possible (somehow) to have in Git (local) relative revision (commit) numbers, like in Mercurial 0, 1, 2, 3, … instead of short hashes?
Or anything more user friendly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use:
master~10to get the 10th last commit on branchmaster.master^to get the second last commit on branchmaster.master^^to get the third last commit on branchmaster.They can even be combined:
master^^~5^.mastercan be any branch name (local or remote) orHEADto reference the current commit.You can use
master^2to get the second merge parent.