Skip to content

Instantly share code, notes, and snippets.

@Androguide
Created January 27, 2014 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Androguide/8656097 to your computer and use it in GitHub Desktop.
Save Androguide/8656097 to your computer and use it in GitHub Desktop.
Git one-liner to cherry-pick a commit from another repo
git --git-dir=../other/repo/path/.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