After the clone is created, initialize all submodules within, using their default settings. This is equivalent to running git submodule update --init --recursive immediately after the clone is finished. This op
Changes not stagedforcommit:(use"git add <file>..."to update what will be committed)(use"git checkout -- <file>..."to discard changesinworking directory)
The command line for those commands that support taking submodules as part of their pathspecs. Most commands have a boolean flag--recurse-submoduleswhich specifies whether to recurse into submodules. Examples aregrepandcheckout. Some commands take enums, such asfetchandpush, where you can specif...
arguments limit which submodules will be initialized. It will also copy the value of submodule.$name.update into .git/config. The key used in .git/config is submodule.$name.url. This command does not alter existing information in .git/config. You can then customize the submodule clone URLs...
首先前往Git官网下载Git工具:https://git-scm.com/downloads,安装成功后,可以在cmd或者其他shell(比如Bash)中输入如下命令来验证是否安装成功: git --version 注:如果Git官网下载很慢的话,可以自行去其他地方下载Git,或者使用choco安装(choco install git)。 本文将基于Windows讲解Git,所有命令交互通过CMD来输入,但...
以提交 ID 作为参数运行任意命令的机制。具体来说,如果submodule.<name>.update配置变量被设置为!custom command,子模块的超级项目中记录的提交对象名称就会被附加到custom command字符串中并被执行。请注意,.gitmodules文件或命令行均不支持该机制。 none
Thegit submodule addcommand takes a URL parameter that points to a git repository. Here we have added theawesomelibraryas a submodule. Git will immediately clone the submodule. We can now review the current state of the repository usinggit status... ...
This command will manage the tree entries and contents of the gitmodules file for you, as well as inspect the status of your submodules and update them. When adding a new submodule to the tree, the add subcommand is to be used. However, when pulling a tree containing submodules, these ...
找到…or create a new repository on the command line找到 git remote add origin https://github.com/clarifyC/GitHub_test_git.git 在Git Bash中输入这段命令,将本地仓库与GitHub仓库连接。 其中https://github.com/clarifyC/GitHub_test_git.git是GitHub仓库的远程地址,origin是本地的 Git为这个远程仓库起...
submodules. --remote This option is only valid for the update command. Instead of using the superproject’s recorded SHA-1 to update the submodule, use the status of the submodule’s remote-tracking branch. The remote used is branch’s remote (branch.<name>.remote), defaulting to origin....