原始.gitmodules文件使用硬编码https网址,但对于我从ssh克隆的一些自动测试,并使子模块网址与../ModuleName相关。我不想将这些变化推回回购。 # change the https://github.com/ with [email protected]:
sed -i 's/https:\/\/github.com\//[email protected]:/g' ".g
我有三个仓库:A,B和C 在我的存储库中,我创建了一个子模块向B(A /库/ B)。 在我的存储库B中,我创建了一个朝向C(A/library/B/library/C)的子模块。 我想在我的仓库C上创建一个新的分支: git clone --recursive C
cd C
git checkout -b branch-test
git touch test
git add test
g
我已被分配到使用git子模块的项目。我的确在README.md的降价一个小的变化并收到以下错误: Running on staging.example.com...
Fetching changes...
HEAD is now at 2414dbe test change
From https://gitlab.example.com/external/project-example