Skip to content

Instantly share code, notes, and snippets.

@WagnerMoreira
Last active August 29, 2015 14:24
Show Gist options
  • Save WagnerMoreira/d6cb49f0073d337ed1a8 to your computer and use it in GitHub Desktop.
Save WagnerMoreira/d6cb49f0073d337ed1a8 to your computer and use it in GitHub Desktop.
Git Squash
git merge-base MY_BRANCH master
git reset --soft MERGE_BASE_ID
git commit -am "MESSAGE"
git push origin MY_BRANCH -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment