if test -e "$sm_path"/.git then displaypath=$(git submodule--helper relative-path "$prefix$sm_path" "$wt_prefix") say "$(eval_gettext "Entering '\$displaypath'")" name=$(git submodule--helper name "$sm_path"
git submodule[--quiet] [--cached]git submodule[--quiet] add [<options>] [--] <repository> [<path>]git submodule[--quiet] status [--cached] [--recursive] [--] [<path>…]git submodule[--quiet] init [--] [<path>…]git submodule[--quiet] deinit [-f|--force] (--all...
get_submodule_config () { name="$1" option="$2" default="$3" value=$(git config submodule."$name"."$option") if test -z "$value" then value=$(git submodule--helper config submodule."$name"."$option") fi printf '%s' "${value:-$default}" ...
git submodule[--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--depth <depth>] [--] <repository> [<path>]git submodule[--quiet] status [--cached] [--recursive] [--] [<path>…]git submodule[--quiet] init [--] [<path>…]gi...
When your submodule is on the same GitLab server, you can also use relative URLs in your.gitmodulesfile: INICopy to clipboard [submodule "project"]path=projecturl = ../../project.git The previous configuration instructs Git to automatically deduce the URL to use when cloning sources. You ...
方案一:api大仓+git submodule(b站) Proto文件只有一份,没有拷贝。 pr和发布解耦,修改api后,不用完成pr,他人切换到对应分支,就能使用。 存在的问题 build时需要将整个api 大仓都生成中间代码。 java项目可通过maven指定部分api文件。 go项目需要新增yaml文件描述当前项目依赖哪些pb文件,再通过脚本去生成中间代码。
git submodule sync --recursivegit submodule update --init --recursive For this feature to work correctly, the submodules must be configured (in.gitmodules) with either: the HTTP(S) URL of a publicly-accessible repository, or a relative path to another repository on the same GitLab server. ...
git_submodules_update_repos.sh - updates submodules for all repos given as args or saved in the setup/repos.txt file git_askpass.sh - credential helper script to use environment variables for git authentication github/*.sh - GitHub API / CLI scripts: github_api.sh - queries the GitHub ...
Added by using a URL relative to the main repository. For example, this one would be checked out: git submodule add /../../submodule.git mymodule This one would not be checked out: git submodule add https://dev.azure.com/fabrikamfiber/_git/ConsoleApp mymodule Authenticated submodules Not...
true | recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules path: string # path to check out source code, relative to the agent's build directory (e.g. \_work\1) persistCredentials: boolean # set to 'true' to leave the OAuth...