Skip to content

Instantly share code, notes, and snippets.

@eruffaldi
Created January 6, 2018 01:58
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 eruffaldi/05bf268b72dbbc71c0d13137168741bb to your computer and use it in GitHub Desktop.
Save eruffaldi/05bf268b72dbbc71c0d13137168741bb to your computer and use it in GitHub Desktop.
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