保持子树和主要repo同步

时间:2015-02-02 17:40:30

标签: git github

我有一个很大的多模块Maven项目,我希望将模块保留为与主repo同步的子树。

例如,我在https://github.com/coderplus/copy-rename-maven-plugin/

获得了回购

我使用

创建了一个子树
git subtree split -P src -b src-only

然后将此子树拉入另一个仓库并将其推送到github

git pull D:\copy-rename-maven-plugin src-only
git remote add origin https://github.com/coderplus/test-git.git
git push origin -u master

有没有办法让这两个GitHub回购同步?

repo1 - https://github.com/coderplus/copy-rename-maven-plugin/

repo2 - https://github.com/coderplus/test-git

以这种方式推送到repo1的任何东西被推送到repo2,反之亦然?

0 个答案:

没有答案
相关问题