Skip to content

Instantly share code, notes, and snippets.

@RichieRunner
Last active May 2, 2020 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichieRunner/96098a8739be3ee56e75d68f64dd8a5f to your computer and use it in GitHub Desktop.
Save RichieRunner/96098a8739be3ee56e75d68f64dd8a5f to your computer and use it in GitHub Desktop.
squash commits that already have been commited πŸ˜”
git reset --soft HEAD~7
git add --all
git commit -m "single desscriptive message"
git push --force

~7 is how many commits to go back to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment