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...
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...
This command does not alter existing information in .git/config. You can then customize the submodule clone URLs in .git/config for your local setup and proceed to git submodule update; you can also just use git submodule update --init without the explicit init step if you do not intend t...
git submodule add https://github.com/erduoniba/HDSubProjectTwo.git 将子工程绑定到主工程中。 这个时候你会发现在HDMasterProject会多出2个文件夹,这里的代码其实就是对HDSubProjectOne,HDSubProjectTwo2个子工程的clone,以后的代码修改就是在这里修改。
git submodule update --init 至此我们的git submodule演示就结束了。 4.10 git subtree – 包含第三方模块 前面提过,我们还可以使用git subtree来包含第三方模块。git submodule是引用第三方模块,第三方模块是一个独立的git 仓库,跟主仓库完全剥离。git subtree则是包含第三方模块,第三方模块代码是主仓库的一部...
gitsubmodule[--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--depth <depth>] [--] <repository> [<path>]gitsubmodule[--quiet] status [--cached] [--recursive] [--] [<path>...]gitsubmodule[--quiet] init [--] [<path>...]gitsubmodul...
# parse $args after "submodule ... update".while test $# -ne 0 do case "$1" in -q|--quiet) GIT_QUIET=1 ;; -i|--init) init=1 ;; --remote) remote=1 ;; -N|--no-fetch) nofetch=1 ;; -f|--force) ...
# 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 ...
treewide: ensure one of the appropriate headers is sourced first Feb 24, 2023 sub-process.h treewide: remove unnecessary git-compat-util.h includes in headers Feb 24, 2023 submodule-config.c global: mark code units that generate warnings with -Wsign-compare Dec 6, 2024 ...
mkdirmy_projectcdmy_projectgitinit 可以看到我们初始化仓库之后,文件夹里面多一个 .git 的隐藏文件夹。 3.2 克隆远程仓库 如果你想获取远程仓库的代码副本,可以使用以下命令克隆远程仓库: 代码语言:bash 复制 gitclone remote_repository_url 4. 基本工作流 ...