Skip to content

Instantly share code, notes, and snippets.

@bhumphrey
Created September 22, 2012 03:10
Show Gist options
  • Save bhumphrey/3764983 to your computer and use it in GitHub Desktop.
Save bhumphrey/3764983 to your computer and use it in GitHub Desktop.
Cherry-picking from another fork
git checkout <branch>
git fetch <other-fork-alias>
git cherry-pick <commit-hash>
git push <your-fork-alias>
@pritster5
Copy link

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>

@shubhamshinde360
Copy link

Still works 11 years later!

@eightycc
Copy link

A treasure. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment