If the location of the .git directory matches the pattern, the include condition is met. The .git location may be auto-discovered, or come from $GIT_DIR environment variable. If the repository is auto-discovered via a .git file (e.g. from submodules, or a linked worktree), the .git...
branch [--track[=(direct|inherit)] | --no-track] [-f] [--recurse-submodules] <branchname> [<start-point>] git branch (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>] git branch --unset-upstream [<branchname>] git branch (-m | -M) [<oldbranch>] <newbranch>...
--submodule[=<format>] Specify how differences in submodules are shown. When specifying --submodule=short the short format is used. This format just shows the names of the commits at the beginning and end of the range. When --submodule or --submodule=log is specified, the log format is...
GIT_SUBMODULE_STRATEGY用于在构建之前控制git子模块用,像GIT_STRATEGY一样,他可以在全局variables里设置,也能在jobs下的variables设置 有三个可选值 none,normal,recursive none默认不引入子模块,和,Runner1.10以前的默认行为一样,也是默认值 normal默认只引入第一级子模块,跟下面相等 git submodule sync git submodule...
5.12 git tag 5.13 git branch 5.14 git checkout 5.15 git merge 5.16 git rebase 5.17 git remote 5.18 git push 5.19 git fetch 5.20 git pull 5.21 git revert 5.22 git restore 5.23 git reflog 5.24 git stash 5.25 git submodule 5.26 git subtree 5.27 git cherry-pick 5.28 git grep 5.29 git apply...
git tag <tagname> <commit> 用于给特定提交打上标签,便于引用。 Bash git tag v1 C2//给C2打上v1的标签 检出(Checkout): git checkout <branch_or_commit> 用于切换分支或查看旧版本。 git checkout -b <newbranch> 用于创建并切换到新分支。 git checkout -b bugFix //会在当前HEAD创建出一个新分...
"type": "git_submodule", "remote": "https://google.com/foo/B" "path": "local/path/to/b_repo" "commit": "123" # i.e could be -> "branch": "dev" or "tag": "v_01" } where: remote: The URI of the remote Git repository. ...
git-filter-branch.sh git-instaweb.sh git-merge-octopus.sh git-merge-one-file.sh git-merge-resolve.sh git-mergetool--lib.sh git-mergetool.sh git-p4.py git-quiltimport.sh git-request-pull.sh git-send-email.perl git-sh-i18n.sh git-sh-setup.sh git-submodule.sh ...
--single-branch:只克隆指定的分支,而不是克隆整个存储库。 --no-tags:不克隆标签。 --recurse-submodules:递归地克隆子模块。 --jobs <n>:指定并发克隆的作业数。 全部选项 -l, --local 当要克隆的仓库位于本地机器上时,此选项绕过正常的"Git aware"传输机制,并通过复制HEAD和objects以及refs目录下的所有...
而submodules只在主repo里存放所有子模块“索引”(repo url + branch name + commit hash),例如: 代码语言:javascript 复制 #主repo的.gitmodules文件[submodule"react-dom"]path=packages/react-dom url=https://github.com/facebook/react.git branch=master[submodule"react-reconciler"]path=packages/react-reco...