Skip to content

Instantly share code, notes, and snippets.

@mallendeo
Last active February 28, 2019 19:26
Show Gist options
  • Save mallendeo/f55456537286c143b37dfdaac630c36f to your computer and use it in GitHub Desktop.
Save mallendeo/f55456537286c143b37dfdaac630c36f to your computer and use it in GitHub Desktop.
Git Merge Flow
# 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