Git clone 命令参数:
使用命令:git clone -help
- $ git clone -help
- usage: git clone [options] [--] <repo> [<dir>]
- -v, --verbose be more verbose
- -q, --quiet be more quiet
- --progress force progress reporting
- -n, --no-checkout don't create a checkout
- --bare create a bare repository
- --mirror create a mirror repository (implies bare)
- -l, --local to clone from a local repository
- --no-hardlinks don't use local hardlinks, always copy
- -s, --shared setup as shared repository
- --recursive initialize submodules in the clone
- --recurse-submodules initialize submodules in the clone
- --template <template-directory>
- directory from which templates will be used
- --reference <repo> reference repository
- -o, --origin <name> use <name> instead of 'origin' to track upstream
- -b, --branch <branch>
- checkout <branch> instead of the remote's HEAD
- -u, --upload-pack <path>
- path to git-upload-pack on the remote
- --depth <depth> create a shallow clone of that depth
- --single-branch clone only one branch, HEAD or --branch
- --separate-git-dir <gitdir>
- separate git dir from working tree
- -c, --config <key=value>
- set config inside the new repository
本文介绍了如何使用Git clone命令来克隆远程仓库的特定分支。内容包括各种选项的用法,如 `-b` 参数用于指定要克隆的分支,以及其他与克隆相关的配置选项,如创建裸仓库、设置进度报告等。


被折叠的 条评论
为什么被折叠?



