Last active
February 28, 2019 19:26
-
-
Save mallendeo/f55456537286c143b37dfdaac630c36f to your computer and use it in GitHub Desktop.
Git Merge Flow
This file contains hidden or 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 config --global alias.pushf "push --force-with-lease" | |
# git config --global alias.mnff "merge --no-ff" | |
BRANCH="epic/CompraEnApp/feature/layout-helper" | |
DEVELOP="epic/CompraEnApp/develop" | |
git checkout $DEVELOP && git pull | |
git checkout $BRANCH | |
# create backup | |
git push origin $BRANCH:"spike-$BRANCH" | |
# may rise conflicts, solve them as they appear | |
git rebase $DEVELOP | |
git pushf origin | |
git checkout $DEVELOP | |
git mnff $BRANCH | |
git push origin $DEVELOP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment