Skip to content

Commit c562cf6

Browse files
qnerdenkenden
authored andcommitted
docs: git-clone: list short form of options first
List the short form of options (e.g.: '-l') before the long form (e.g. '--local'). This is to match the doc of git-add, git-commit, git-clean, git-branch... Signed-off-by: Quentin Nerden <[email protected]>
1 parent d2f5540 commit c562cf6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Documentation/git-clone.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ configuration variables.
4141

4242
OPTIONS
4343
-------
44-
--local::
4544
-l::
45+
--local::
4646
When the repository to clone from is on a local machine,
4747
this flag bypasses the normal "Git aware" transport
4848
mechanism and clones the repository by making a copy of
@@ -63,8 +63,8 @@ Git transport instead.
6363
directory instead of using hardlinks. This may be desirable
6464
if you are trying to make a back-up of your repository.
6565

66-
--shared::
6766
-s::
67+
--shared::
6868
When the repository to clone is on the local machine,
6969
instead of using hard links, automatically setup
7070
`.git/objects/info/alternates` to share the objects
@@ -116,13 +116,13 @@ objects from the source repository into a pack in the cloned repository.
116116
same repository, and this option can be used to stop the
117117
borrowing.
118118

119-
--quiet::
120119
-q::
120+
--quiet::
121121
Operate quietly. Progress is not reported to the standard
122122
error stream.
123123

124-
--verbose::
125124
-v::
125+
--verbose::
126126
Run verbosely. Does not affect the reporting of progress status
127127
to the standard error stream.
128128

@@ -140,8 +140,8 @@ objects from the source repository into a pack in the cloned repository.
140140
When multiple `--server-option=<option>` are given, they are all
141141
sent to the other side in the order listed on the command line.
142142

143-
--no-checkout::
144143
-n::
144+
--no-checkout::
145145
No checkout of HEAD is performed after the clone is complete.
146146

147147
--bare::
@@ -164,22 +164,22 @@ objects from the source repository into a pack in the cloned repository.
164164
that all these refs are overwritten by a `git remote update` in the
165165
target repository.
166166

167-
--origin <name>::
168167
-o <name>::
168+
--origin <name>::
169169
Instead of using the remote name `origin` to keep track
170170
of the upstream repository, use `<name>`.
171171

172-
--branch <name>::
173172
-b <name>::
173+
--branch <name>::
174174
Instead of pointing the newly created HEAD to the branch pointed
175175
to by the cloned repository's HEAD, point to `<name>` branch
176176
instead. In a non-bare repository, this is the branch that will
177177
be checked out.
178178
`--branch` can also take tags and detaches the HEAD at that commit
179179
in the resulting repository.
180180

181-
--upload-pack <upload-pack>::
182181
-u <upload-pack>::
182+
--upload-pack <upload-pack>::
183183
When given, and the repository to clone from is accessed
184184
via ssh, this specifies a non-default path for the command
185185
run on the other end.
@@ -188,8 +188,8 @@ objects from the source repository into a pack in the cloned repository.
188188
Specify the directory from which templates will be used;
189189
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
190190

191-
--config <key>=<value>::
192191
-c <key>=<value>::
192+
--config <key>=<value>::
193193
Set a configuration variable in the newly-created repository;
194194
this takes effect immediately after the repository is
195195
initialized, but before the remote history is fetched or any

0 commit comments

Comments
 (0)