Skip to content

Instantly share code, notes, and snippets.

@alissalbedrocket
Created April 3, 2015 19:40
Show Gist options
  • Save alissalbedrocket/4d53002efb068f219668 to your computer and use it in GitHub Desktop.
Save alissalbedrocket/4d53002efb068f219668 to your computer and use it in GitHub Desktop.
Squashing commits
git reset HEAD~2 // however many commits you want to squash into one
git add .
git commit -m 'bigfoot is real'
git push origin feature/bigfoot --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment