Skip to content

Commit bfc8c84

Browse files
qnerdengitster
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]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3711d1c commit bfc8c84

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
@@ -40,8 +40,8 @@ configuration variables.
4040

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

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

118-
--quiet::
119118
-q::
119+
--quiet::
120120
Operate quietly. Progress is not reported to the standard
121121
error stream.
122122

123-
--verbose::
124123
-v::
124+
--verbose::
125125
Run verbosely. Does not affect the reporting of progress status
126126
to the standard error stream.
127127

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

142-
--no-checkout::
143142
-n::
143+
--no-checkout::
144144
No checkout of HEAD is performed after the clone is complete.
145145

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

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

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

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

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

0 commit comments

Comments
 (0)