![](/img/trans.png)
[英]How to move a bunch of git repository from one remote repository to another?
[英]How to move file from one repository to another git repository
我有一個 RepoA 和 RepoB,我想將文件從 RepoA 移動到 RepoB。 例如
像這個 RepoA/Bundle/fileToMove.txt 到 RepoB/Bundle/fileToMove.txt
但我想通過 git 命令自動實現這一點,而不是手動添加文件
簽出兩個 repos 的最簡單方法是手動將文件從RepoA/Bundle/fileToMove.txt
到RepoB/Bundle/fileToMove.text
,然后在要添加文件的 RepoB 上創建一個新提交。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.