How to remove the first commit in git?
For me, the most secure way is to use the update-ref command: git update-ref -d HEAD It will delete the named reference HEAD, so it will reset (softly, you will not lose your work) ALL your commits of your current branch. If what you want is to merge the first commit with the second one, … Read more