Git commands (updating)

Cherry-pick commit from another repo and copy to current repo different folder

cd projectB/
git --git-dir=../projectA/.git format-patch --stdout sha1xxxxxxx | git am --directory='src/subfolder/' -3 -k

Be the first to comment

Leave a Reply

Your email address will not be published.


*