2015-03-03 186 views

回答

1

假設REPO_1是URL到所述第一存儲庫中,並且REPO_1是路徑到第二存儲庫中,在所述第二存儲庫運行此:

git remote add upstream REPO_1 
git pull upstream 
git cherry pick <hash_of_commit_to_select>... 
+1

另一種方法是使用底墊。 在另一個問題中有討論:http://stackoverflow.com/questions/28845851/how-to-merge-code-from-branch1-to-branch2-but-excluding-some-commits。 – XWang 2015-03-16 01:59:23

+0

好點,在這種情況下,我會推薦一些類似'git rebase -i upstream/master'的東西。 – 2015-03-16 14:06:36

相關問題