2017-03-01 63 views
1

我想將自動生成的文件從git repo-A移動到git repo-B。 Git repo-A生成構建目錄後使但建立目錄沒有簽入英寸我花了很多時間調查一種方法,但我無法做到。將自動生成的構建文件從一個git repo移動到另一個git repo

GIT repo-A: 
    |------directoryA 
    |------directoryA1 
    |------build/ (autogenerated after make) 

GIT repo-B: 
    |------directoryB 
    |------directoryB1 
    |------repo-A:build/ (want this directory from A to B) 

Actually I followed this link to filter the directory but it didn't work

克隆回購-A到回購B,然後過濾我想要的目錄,但不幸的是在回購-A的build目錄生成的最終二進制文件未籤。

有沒有什麼辦法可以將未經檢查的目錄移動到另一個回購站點?

我願意使用它作爲子模塊,如果它解決了我的問題,謝謝。

回答

1

您可以添加分支(假設它是開發分支),包括建立回購的文件夾,如回購-B的子樹:

# in repo-B 
git subtree add --prefix=repo-A:build/ <URL for repo-A> develop 
相關問題