Last active
January 19, 2016 23:02
-
-
Save awd-git/f8ca01a4affe5d93d916 to your computer and use it in GitHub Desktop.
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
// HEAD~2 squashes the last two commits | |
// HEAD~3 the last three | |
// ... and so on | |
// this is the example for last three | |
git reset --soft HEAD~3 && git commit | |
// to push everything to origin, i.e. remote on github.com | |
git push origin [branch-name] --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment