Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikezaccardo/a25e3f9f8de8628d521d70a6ec658b76 to your computer and use it in GitHub Desktop.
Save mikezaccardo/a25e3f9f8de8628d521d70a6ec658b76 to your computer and use it in GitHub Desktop.
Squash Commits
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