Skip to content

Instantly share code, notes, and snippets.

@sorenlouv
Last active October 30, 2015 09:50
Show Gist options
  • Save sorenlouv/60f50b0d89c657287f9e to your computer and use it in GitHub Desktop.
Save sorenlouv/60f50b0d89c657287f9e to your computer and use it in GitHub Desktop.
Squash commits from branch
git checkout master
git checkout -b master-squash
git merge --squash <branch-to-squash>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment