Created
September 6, 2024 09:17
-
-
Save nixikanius/79d11ca5055a25344bab85389632787f to your computer and use it in GitHub Desktop.
Cherry-pick git commit to multiple branches
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
COMMIT="3ff7b6b66fbc4b1241aab2d80210e2ca966d7dbe"; BRANCHES=(demo-public-en demo-public-es); for b in "${BRANCHES[@]}"; do echo "*** BRANCH $b" && git checkout $b && git cherry-pick $COMMIT && git push || break; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment