When you add a Git submodule path to your repository, Git creates a special entry in your repository'sconfig file that points to the submodule's URL and the location where it should be cloned. When you clone the main repository, Git will automatically clone the submodules as well, and ini...
realrepo=$(git submodule--helper resolve-relative-url "$repo") || exit ;; *:*|/*) # absolute url realrepo=$repo ;; *) die "$(eval_gettext "repo URL: '\$repo' must be absolute or begin with ./|../")" ;; esac # normalize path: # multiple //; leading ....
Shown when a user runs a submodule command that fails because git submodule update --init was not run. suggestDetachingHead Shown when git-switch[1] refuses to detach HEAD without the explicit --detach option. updateSparsePath Shown when either git-add[1] or git-rm[1] is asked to upd...
In the case where the path is a submodule, if the submodule commit used on one side of the merge is a descendant of the submodule commit used on the other side of the merge, Git attempts to fast-forward to the descendant. Otherwise, Git will treat this case as a conflict, suggesting ...
# git-submodule.sh: add, init, update or list git submodules # # Copyright (c) 2007 Lars Hjemli dashless=$(basename "$0" | sed -e 's/-/ /') USAGE="[--quiet] [--cached] or: $dashless [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference ...
方案一:api大仓+git submodule(b站) Proto文件只有一份,没有拷贝。 pr和发布解耦,修改api后,不用完成pr,他人切换到对应分支,就能使用。 存在的问题 build时需要将整个api 大仓都生成中间代码。 java项目可通过maven指定部分api文件。 go项目需要新增yaml文件描述当前项目依赖哪些pb文件,再通过脚本去生成中间代码。
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...
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...
git-submodule.sh git-submodule.sh: rename some variables Dec 11, 2024 git-svn.perl Makefile: consistently use @Placeholder@ to substitute Dec 7, 2024 git-web--browse.sh git-web--browse.sh: use the $( ... ) construct for command substitution Apr 24, 2014 ...
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 above configuration instructs Git to automatically deduce the URL to use when cloning sources. You can...