Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Git Temporary Branch Squashed
git push origin --delete $SQUASHEDBRANCH
git branch -d $SQUASHEDBRANCH
git checkout master
git checkout -b $SQUASHEDBRANCH
git merge --squash $BRANCH
git commit -am "squashed patch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment