Skip to content

Commit 4f29c68

Browse files
jnavilagitster
authored andcommitted
doc: finalize git-clone documentation conversion to synopsis style
Use backticks where appropriate for command-line options Reviewed-by: Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com> Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 777f5d0 commit 4f29c68

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Documentation/git-clone.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ objects from the source repository into a pack in the cloned repository.
152152
unknown ones, is server-specific.
153153
When multiple `--server-option=<option>` are given, they are all
154154
sent to the other side in the order listed on the command line.
155-
When no ++--server-option=++__<option>__ is given from the command
155+
When no `--server-option=<option>` is given from the command
156156
line, the values of configuration variable `remote.<name>.serverOption`
157157
are used instead.
158158

@@ -206,14 +206,14 @@ objects from the source repository into a pack in the cloned repository.
206206
that all these refs are overwritten by a `git remote update` in the
207207
target repository.
208208

209-
`-o` _<name>_::
210-
`--origin` _<name>_::
209+
`-o <name>`::
210+
`--origin <name>`::
211211
Instead of using the remote name `origin` to keep track of the upstream
212212
repository, use _<name>_. Overrides `clone.defaultRemoteName` from the
213213
config.
214214

215-
`-b` _<name>_::
216-
`--branch` _<name>_::
215+
`-b <name>`::
216+
`--branch <name>`::
217217
Instead of pointing the newly created `HEAD` to the branch pointed
218218
to by the cloned repository's `HEAD`, point to _<name>_ branch
219219
instead. In a non-bare repository, this is the branch that will
@@ -230,8 +230,8 @@ objects from the source repository into a pack in the cloned repository.
230230
name.
231231
This option is incompatible with `--branch` and `--mirror`.
232232

233-
`-u` _<upload-pack>_::
234-
`--upload-pack` _<upload-pack>_::
233+
`-u <upload-pack>`::
234+
`--upload-pack <upload-pack>`::
235235
When given, and the repository to clone from is accessed
236236
via ssh, this specifies a non-default path for the command
237237
run on the other end.
@@ -240,8 +240,8 @@ objects from the source repository into a pack in the cloned repository.
240240
Specify the directory from which templates will be used;
241241
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
242242

243-
`-c` `<key>=<value>`::
244-
`--config` `<key>=<value>`::
243+
`-c <key>=<value>`::
244+
`--config <key>=<value>`::
245245
Set a configuration variable in the newly-created repository;
246246
this takes effect immediately after the repository is
247247
initialized, but before the remote history is fetched or any
@@ -339,8 +339,8 @@ Specify the given ref storage format for the repository. The valid values are:
339339
+
340340
include::ref-storage-format.adoc[]
341341

342-
`-j` _<n>_::
343-
`--jobs` _<n>_::
342+
`-j <n>`::
343+
`--jobs <n>`::
344344
The number of submodules fetched at the same time.
345345
Defaults to the `submodule.fetchJobs` option.
346346

0 commit comments

Comments
 (0)