Last active
November 8, 2015 10:30
-
-
Save mbarrben/f37f4d2d9d9d3dd8bc66 to your computer and use it in GitHub Desktop.
Squash steps
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
1. Check out develop and make pull from origin | |
git checkout develop | |
git pull | |
2. Check out your branch | |
git checkout <your-branch-name-here> | |
3. Merge develop into your branch | |
git merge develop | |
4. git reset --soft origin/develop | |
5. Commit the pending changes in a single commit | |
git commit -m "<your-commit-message-here>" | |
6. Force push to remote repo | |
git push -f origin <your-branch-name-here> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment