Created
June 29, 2014 21:42
-
-
Save samdark/54764dd69b3e38140938 to your computer and use it in GitHub Desktop.
Git: squash last 3 commits together
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --soft HEAD~3 | |
git commit -m 'new commit message' |
It seems that git reset --soft HEAD~3
squashes last 4 commits, not last 3!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks sir
i was looking for that