Skip to content

Instantly share code, notes, and snippets.

@cbilgili
Created May 6, 2020 12:25
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 cbilgili/094b4dfb2162c61ed7e14a73dbc4ca21 to your computer and use it in GitHub Desktop.
Save cbilgili/094b4dfb2162c61ed7e14a73dbc4ca21 to your computer and use it in GitHub Desktop.
2020 Simple solution without rebase :
git reset --soft HEAD~2
git commit -m "new commit message"
git push --force
2 means the last two commits will be squashed. You can replace it by any number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment