Last active
February 26, 2019 09:27
-
-
Save Couto/b4834ec4efc5f252c23f69a593db0ccd to your computer and use it in GitHub Desktop.
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
# Create the patch | |
git reset --hard origin/master | |
git format-patch -o /tmp -1 HEAD > /tmp/patch-name | |
# For each service | |
git checkout master | |
git pull --ff-only | |
git checkout -b "$(basename -s .patch $(cat /tmp/patch-name))" | |
git am -3 "$(cat /tmp/patch-name)" | |
# Fix any possible conflicts | |
git add -A | |
git am --continue | |
# Push to remote | |
git push --set-upstream origin "$(basename -s .patch $(cat /tmp/patch-name))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment