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> |
❤️
Thanks after 10 years
Works after 10 years
+1 thanks! Ten years on and still works. Thanks to @gsheasby too for the tip on adding a new remote
alias. 🍻
Thank you! Also thanks to @gsheasby for the remote
alias tip!
Thanks! may all lost souls find this sooner.
Thank you.
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
Saved me 8 years later 🎉