[--quiet] set-url [--] <path> <newurl>git submodule[--quiet] summary [<options>] [--] [<path>…]git submodule[--quiet] foreach [--recursive] git submodule[--quiet] sync [--recursive] [--] [<path>…]git submodule[--quiet] absorbgitdirs [--] [<path>…] DESCRIP...
Let’s start by adding an existing Git repository as a submodule of the repository that we’re working on. To add a new submodule you use thegit submodule addcommand with the absolute or relative URL of the project you would like to start tracking. In this example, we’ll add a library...
git-submodule.sh git-svn.perl git-web--browse.sh git-zlib.c git-zlib.h git.c git.rc.in gpg-interface.c gpg-interface.h graph.c graph.h grep.c grep.h hash-lookup.c hash-lookup.h hash.h hashmap.c hashmap.h help.c help.h hex-ll.c hex-ll.h ...
git ${wt_prefix:+-C "$wt_prefix"} submodule--helper set-branch ${GIT_QUIET:+--quiet} ${branch:+--branch "$branch"} ${default:+--default} -- "$@" } # # Configures a submodule's remote url # # $@ = requested path, requested url # cmd_set_url() { while test...
get_submodule_config () { name="$1" option="$2" default="$3" value=$(git config submodule."$name"."$option") if test -z "$value" then value=$(git config -f .gitmodules submodule."$name"."$option") fi printf '%s' "${value:-$default}" ...
We recently looked into using submodules but the Visual Studio lack of support was a blocker for us. While performing the initial submodule add outside of Visual Studio wasn’t too much of a hardship, there we a few features missing that would impact out day to day running. * ability to...
The git submodule commands are not affected by this setting. diff.mnemonicprefix If set, git diff uses a prefix pair that is different from the standard "a/" and "b/" depending on what is being compared. When this configuration is in effect, reverse diff output also swaps the order of ...
Summary I use git-submodules in a few projects (self-hosted Gitlab EE). The project URLs are relative to the current project. This...
--super-prefix=<path> 目前仅供内部使用。设置一个前缀,该前缀提供从存储库上方到其根目录的路径。一个用途是给出调用它的超级项目的子模块上下文。 --bare 将存储库视为裸存储库。如果未设置 GIT_DIR 环境,则将其设置为当前工作目录。 --no-replace-objects ...
可以使用 git init 在当前目录创建 git 仓库,也可使用 git init <path> 在 path 路径下创建目录并创建 git 仓库。注意有个 --bare 参数可以生成一般作为远程仓库的裸仓库,其不包含工作区,具体可参考此博客。clone 可以直接使用 git clone <url> 来克隆对应仓库代码,本地默认存储目录为当前目录下的仓库同名...