Does git revert only take previous commit-hash, and for others we need to use HEAD~3 syntax?

29 views Asked by At

I

I am providing git revert 5thCommitHashFromHead, it says auto-merging, I removed conflicts from code editor, it still shows master|reverting, but when I provided git revert HEAD~5 it works fine, do we need to use only HEAD~number Syntax with revert?

0

There are 0 answers