Skip to content

Instantly share code, notes, and snippets.

@nixikanius
Created September 6, 2024 09:17
Show Gist options
  • Save nixikanius/79d11ca5055a25344bab85389632787f to your computer and use it in GitHub Desktop.
Save nixikanius/79d11ca5055a25344bab85389632787f to your computer and use it in GitHub Desktop.
Cherry-pick git commit to multiple branches
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