Created
July 6, 2016 19:50
-
-
Save mikezaccardo/a25e3f9f8de8628d521d70a6ec658b76 to your computer and use it in GitHub Desktop.
Squash Commits
This file contains 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~N | |
git commit -m "Commit message here" | |
git push -f | |
N = the number of commits back (including head) that you will squash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment