Skip to content

Instantly share code, notes, and snippets.

@rmbrntt
Created March 22, 2018 13:46
Show Gist options
  • Save rmbrntt/d97533abab20d44c4c716a4285a425a9 to your computer and use it in GitHub Desktop.
Save rmbrntt/d97533abab20d44c4c716a4285a425a9 to your computer and use it in GitHub Desktop.
Squash commits one-liner
git reset --soft $(git merge-base master YOUR_BRANCH) && git commit -am "YOUR COMMIT MESSAGE" && git rebase -i master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment