Last active
August 2, 2018 19:55
-
-
Save gte445e/e39c95cc1b32fa41e4ed8634b2e97bd6 to your computer and use it in GitHub Desktop.
Apply commit from another repository
This file contains hidden or 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
# Is it possible to cherry-pick a commit from another git repository? | |
# https://stackoverflow.com/questions/5120038/is-it-possible-to-cherry-pick-a-commit-from-another-git-repository | |
git --git-dir=../<some_other_repo>/.git \ | |
format-patch -k -1 --stdout <commit SHA> | \ | |
git am --no-3way -k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment