git apply patch from another repository

$ git --git-dir=../<some_other_repo>/.git format-patch -k -1 --stdout <commit SHA> | git am -3 -k
 
Source 
http://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit 

No comments:

Post a Comment