git submodule add 命令的基本语法结构 bash git submodule add [-b <branch>] [--name <name>] [--reference <repository>] [--depth <depth>] <repository> <path> -b <branch>:指定子模块要跟踪的分支(默认为 master,但 master 分支名在较新...
$git submodule add --name matery --depth 1 git@github.com:xiamu33/hexo-theme-matery.git themes/xiamu-matery 已有子模块的项目中则执行: $git submodule update --init --depth 1 此时,你本地项目的子模块的克隆将作为浅克隆执行(历史深度为1)。如果你想始终浅克隆该子模块,可执行以下命令: $git con...
问git添加子模块,带深度和分支选项EN版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。
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...
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...
[--mirror] [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>] [--dissociate] [--separate-git-dir <git dir>] [--depth <depth>] [--[no-]single-branch] [--recurse-submodules] [--[no-]shallow-submodules] [--jobs <n>] [--] <repository> [<directory...
[submodule "third-party/Hanim"] path = third-party/Hanim url = git@github.com:Sunrisepeak/Hanim.git [submodule "third-party/XRecorder"] path = third-party/XRecorder url = git@github.com:Sunrisepeak/XRecorder.git [submodule "third-party/imnodes"] path = third-party/imnodes url = git@...
例如,此檔案會取出: git submodule add /../../submodule.git mymodule 此檔案不會取出: git submodule add https://dev.azure.com/fabrikamfiber/_git/ConsoleApp mymodule 已驗證的子模組 注意 請確定您已使用 HTTPS 註冊您的子模組,而不使用 SSH。 代理程式用來從主要存放庫取得來源的相同認證也會用來取得...
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...
這會取出: git submodule add ../../../FabrikamFiberProject/_git/FabrikamFiber FabrikamFiber 在此範例中,子模組是指相同 Azure DevOps 組織中的存放庫 (FabrikamFiber),但在不同的專案中(FabrikamFiberProject)。 代理程式用來從主要存放庫取得來源的相同認證也會用來取得子模組的來源。 ...