Submodules allow you to include other Git repositories within a Git repository and can be managed directly inside of GitKraken Desktop. Toggle submodules in Left Panel All panes in the Left Panel can be toggled
#方法1 $ cd /path/to/DbConnector $ git fetch $ git merge origin/master #方法2 $ git submodule update --remote DbConnector #更新指定的submodule $ git submodule update --remote # 默认更新所有的submodules [submodule "DbConnector"] path = DbConnector url = https://github.com/chaconinc/Db...
初始化子模块:git submodule init 更新子模块:git submodule update 递归克隆整个项目submodule:git clone https://github.com/demo.git assets --recursive 递归更新整个项目submodule:git submodule foreach git pull 删除子模块:git rm --cached subModulesA rm -rf subModulesA --recursive表示递归地克隆git_pare...
GitHub submodule push It should be noted that the created GitHub submodules are treated as separate, independent repositories. To prove this point, a file named tugboat.html is added to the surface module and a file named xia.html is added to the addedGit/GitHubsubmodule. Note t...
git submodule status 查看当前仓库的submodule状态,包括submodule的submodule状态(if you want to show nested submodules.): git submodule status --recursive 七. 更改submodule的版本 我一开始直接用的git submodule update --remote path-to-submodule的指令,cmd界面上成功走完了,没报错,但是我进去我的submodule...
如果希望子模块代码也获取到,一种方式是在克隆主项目的时候带上参数 --recurse-submodules,这样会递归地将项目中所有子模块的代码拉取。 若是已经单独拉取了主项目,则可以使用下面的命令来拉取子模块: git submodule init git submodule update # 或者将上面的两条合成一步来使用 git submodule update --init 如...
url = https://github.com/chaconinc/DbConnector If you have multiple submodules, you’ll have multiple entries in this file. It’s important to note that this file is version-controlled with your other files, like your.gitignorefile. It’s pushed and pulled with the rest of your project...
git/config [submodule "path_to_submodule"] url = https://github.com/path_to_submodule# 4.删掉子模块缓存 $ rm -rf .git/modules/path_to_submodule 清理完成之后重新git submodule add即可 P.S.第4步中,子模块的缓存位置可以通过如下命令查看: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 $...
git submodule update --init --recurisive 也可以在用git clone命令时,加上-recurse-submodules或-recursive递归参数 git clone --recursive projectA.git 这里在GitHub找到一个实际的项目用到git submodule机制,可以参考:https://github.com/continental/fineftp-server ...
$gitsubmoduleaddhttps://github.com/old-project/old-project.git reuse-code Cloning into '/home/user/main/old-project’... remote: Enumerating objects:1000, done. remote: Total1000(delta0), reused0(delta0), pack-reused1000Receiving objects:100%(1000/1000),3.03MiB|3.38MiB/s, done. ...