在2个存储库之间共享文件

时间:2014-11-24 17:25:00

标签: git github bitbucket git-merge git-subtree

鉴于以下2个存储库:

webapp-repoA/
    src/
        main/
            java/
            resources/
                toshare/theFile.txt
            webapp/
        test/
    .gitignore

dbRefact-repoB/
    src/
        main/
            java/
            resources/
        test/
    .gitignore

“子树”命令的序列是什么,以便将要复制到的“ webapp-RepoA ”存储库中的文件“ toshare / theFile.txt ” “ dbRefact-repoB ”存储库的“resources”文件夹?

我不想创建第三个存储库。对“ theFile.txt ”的更改将来自存储库“webapp-RepoA ”。我不希望“ webapp-repoB ”中的“ webapp-RepoA ”存储库的所有内容,只需要“ toshare / theFile.txt “文件。

0 个答案:

没有答案
相关问题