Created
September 22, 2012 03:10
-
-
Save bhumphrey/3764983 to your computer and use it in GitHub Desktop.
Cherry-picking from another fork
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
git checkout <branch> | |
git fetch <other-fork-alias> | |
git cherry-pick <commit-hash> | |
git push <your-fork-alias> |
Saved me 11 years later 🥳
Thanks. Works even in 2023 with no changes. 🙏 With remote add from @gsheasby
So is the final version of this supposed to be the following?:
git checkout <branch>
git remote add <other-fork-alias> <other-fork-URL>
git fetch <other-fork-alias>
git cherry-pick <commit-hash>
git push <your-fork-alias>
Still works 11 years later!
A treasure. Many thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.