Skip to content

Instantly share code, notes, and snippets.

@John-K
Created September 21, 2015 12:51
Show Gist options
  • Save John-K/7f1aa15205545437899f to your computer and use it in GitHub Desktop.
Save John-K/7f1aa15205545437899f to your computer and use it in GitHub Desktop.
Git cherry-pick foreign
git --git-dir=../<some_other_repo>/.git \
format-patch -k -1 --stdout <commit SHA> | \
git am -3 -k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment