Created
March 10, 2016 18:34
-
-
Save jdaily/c59dc92c3256f5f0871f to your computer and use it in GitHub Desktop.
Squash a Feature Branch against Master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch [Feature]-squashed | |
git checkout [Feature]-squashed | |
git reset --hard upstream/master | |
git merge --squash upstream/[Feature] | |
git commit -m "squashed [Feature] PR to one commit" | |
git push origin [Feature]-squashed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment