diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-11-18 20:04:57 -0500 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-11-18 20:04:57 -0500 |
commit | 7a93aaab006ae57b7e20b21fa981bf3e4fab2553 (patch) | |
tree | 3b95e1d7d833a71abf6771c3efe351cf69a743db /Documentation/git-clone.txt | |
parent | e06bd84551261e45fad72b2ddff646c34ca29240 (diff) | |
parent | 52469059f10483401d194f781c083b700a3880d4 (diff) | |
download | git-7a93aaab006ae57b7e20b21fa981bf3e4fab2553.tar.gz |
Merge branch 'gc/submodule-clone-update-with-branches' into jch
"git clone --recurse-submodules" and "git submodule update" learns
to honor the "propagete branches" option.
* gc/submodule-clone-update-with-branches:
clone, submodule update: create and check out branches
submodule--helper: remove update_data.suboid
submodule update: refactor update targets
submodule: return target of submodule symref
t5617: drop references to remote-tracking branches
submodule--helper clone: create named branch
repo-settings: add submodule_propagate_branches
clone: teach --detach option
Diffstat (limited to 'Documentation/git-clone.txt')
-rw-r--r-- | Documentation/git-clone.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index d6434d262d..6a4e5d31b4 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -16,7 +16,7 @@ SYNOPSIS [--depth <depth>] [--[no-]single-branch] [--no-tags] [--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules] [--[no-]remote-submodules] [--jobs <n>] [--sparse] [--[no-]reject-shallow] - [--filter=<filter> [--also-filter-submodules]] [--] <repository> + [--filter=<filter> [--also-filter-submodules] [--detach]] [--] <repository> [<directory>] DESCRIPTION @@ -210,6 +210,12 @@ objects from the source repository into a pack in the cloned repository. `--branch` can also take tags and detaches the HEAD at that commit in the resulting repository. +--detach:: + If the cloned repository's HEAD points to a branch, point the newly + created HEAD to the branch's commit instead of the branch itself. + Additionally, in a non-bare repository, the corresponding local branch + will not be created. + -u <upload-pack>:: --upload-pack <upload-pack>:: When given, and the repository to clone from is accessed |