Skip to content

Instantly share code, notes, and snippets.

@kavitshah8
Last active September 10, 2015 01:33
Show Gist options
  • Save kavitshah8/548762f6f2d66f4641a3 to your computer and use it in GitHub Desktop.
Save kavitshah8/548762f6f2d66f4641a3 to your computer and use it in GitHub Desktop.
Squash Multiple Commits into One
git commit --soft <Last commit where HEAD should point>
git commit -m 'Many squashed commits'
git push --force origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment