我有两个单独的Git回购:
MyTestCodeRepo
MyProductCodeRepo
我想将MyTestCodeRepo
映射到MyProductCodeRepo
内的文件夹(即 - MyProductCodeRepo/MyTestCode
),这样我就可以在一次提交中提交产品更新和相关测试,这将使其更容易管理他们。
我读到git子树是要走的路,但我使用的Git版本(2.6.3)不支持它。我读了here自2012年5月以来的子版本可以从Git的库存版本获得 - v1.7.11及更高版本,但奇怪的是我的Git安装不能识别子树命令。
编辑:当我尝试使用subtree
时,这是我得到的输出。
grom> git subtree add
git: 'subtree' is not a git command. See 'git --help'.
grom> git --version
git version 2.6.3