Skip to content

Instantly share code, notes, and snippets.

@gsheasby
Forked from bhumphrey/gist:3764983
Last active April 30, 2018 16:48
Show Gist options
  • Save gsheasby/83f35c484cc7540e7e69e2c53477dfea to your computer and use it in GitHub Desktop.
Save gsheasby/83f35c484cc7540e7e69e2c53477dfea to your computer and use it in GitHub Desktop.
Cherry-picking from another fork
git checkout <branch>
git remote add <other-fork-alias> <other-fork-URL>
git fetch <other-fork-alias>
git log <other-fork-alias>/<branch> | head -n1 | cut -d ' ' -f 2 | xargs git cherry-pick
# git cherry-pick <commit-hash>
git push -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment