@@ -9,15 +9,15 @@ git-clone - Clone a repository into a new directory
99SYNOPSIS
1010--------
1111[verse]
12- ' git clone' [ --template=<template-directory>]
13- 	  [-l ] [-s ] [--no-hardlinks] [-q ] [-n ] [--bare] [--mirror]
14- 	  [-o  <name>] [-b  <name>] [-u  <upload-pack>] [--reference  <repository>]
15- 	  [--dissociate] [--separate-git-dir  <git-dir>]
16- 	  [--depth  <depth>] [--[ no-] single-branch] [--no-tags]
17- 	  [--recurse-submodules[= <pathspec>]] [--[ no-] shallow-submodules]
18- 	  [--[ no-] remote-submodules] [--jobs  <n>] [--sparse] [--[ no-] reject-shallow]
19- 	  [--filter=<filter> [ --also-filter-submodules]] [--]  <repository>
20- 	  [<directory>]
12+ ` git clone` [++ --template=++__ <template-directory>__ ]
13+ 	  [`-l` ] [`-s` ] [` --no-hardlinks` ] [`-q` ] [`-n` ] [` --bare` ] [` --mirror` ]
14+ 	  [`-o` _ <name>_ ] [`-b` _ <name>_ ] [`-u` _ <upload-pack>_ ] [` --reference` _ <repository>_ ]
15+ 	  [` --dissociate` ] [` --separate-git-dir` _ <git-dir>_ ]
16+ 	  [` --depth` _ <depth>_ ] [`--`[` no-`]` single-branch` ] [` --no-tags` ]
17+ 	  [++ --recurse-submodules++[++=++__ <pathspec>__ ]] [`--`[` no-`]` shallow-submodules` ]
18+ 	  [`--`[` no-`]` remote-submodules` ] [` --jobs` _ <n>_ ] [` --sparse` ] [`--`[` no-`]` reject-shallow` ]
19+ 	  [++ --filter=++__ <filter-spec>__] [` --also-filter-submodules` ]] [`--`] _ <repository>_ 
20+ 	  [_ <directory>_ ]
2121
2222DESCRIPTION
2323-----------
@@ -31,7 +31,7 @@ currently active branch.
3131After the clone, a plain `git fetch` without arguments will update
3232all the remote-tracking branches, and a `git pull` without
3333arguments will in addition merge the remote master branch into the
34- current master branch, if any (this is untrue when " --single-branch" 
34+ current master branch, if any (this is untrue when ` --single-branch` 
3535is given; see below).
3636
3737This default configuration is achieved by creating references to
@@ -42,12 +42,12 @@ configuration variables.
4242
4343OPTIONS
4444-------
45- -l ::
46- --local::
45+ `-l` ::
46+ ` --local` ::
4747	When the repository to clone from is on a local machine,
4848	this flag bypasses the normal "Git aware" transport
4949	mechanism and clones the repository by making a copy of
50- 	HEAD and everything under objects and refs directories.
50+ 	` HEAD`  and everything under objects and refs directories.
5151	The files under `.git/objects/` directory are hardlinked
5252	to save space when possible.
5353+
@@ -67,14 +67,14 @@ links.
6767source repository, similar to running `cp -r src dst` while modifying
6868`src`.
6969
70- --no-hardlinks::
70+ ` --no-hardlinks` ::
7171	Force the cloning process from a repository on a local
7272	filesystem to copy the files under the `.git/objects`
7373	directory instead of using hardlinks. This may be desirable
7474	if you are trying to make a back-up of your repository.
7575
76- -s ::
77- --shared::
76+ `-s` ::
77+ ` --shared` ::
7878	When the repository to clone is on the local machine,
7979	instead of using hard links, automatically setup
8080	`.git/objects/info/alternates` to share the objects
@@ -101,7 +101,7 @@ If you want to break the dependency of a repository cloned with `--shared` on
101101its source repository, you can simply run `git repack -a` to copy all
102102objects from the source repository into a pack in the cloned repository.
103103
104- --reference[ -if-able]  <repository>::
104+ ` --reference`[` -if-able`] _ <repository>_ ::
105105	If the reference _<repository>_ is on the local machine,
106106	automatically setup `.git/objects/info/alternates` to
107107	obtain objects from the reference _<repository>_.  Using
@@ -115,7 +115,7 @@ objects from the source repository into a pack in the cloned repository.
115115*NOTE*: see the NOTE for the `--shared` option, and also the
116116`--dissociate` option.
117117
118- --dissociate::
118+ ` --dissociate` ::
119119	Borrow the objects from reference repositories specified
120120	with the `--reference` options only to reduce network
121121	transfer, and stop borrowing from them after a clone is made
@@ -126,43 +126,43 @@ objects from the source repository into a pack in the cloned repository.
126126	same repository, and this option can be used to stop the
127127	borrowing.
128128
129- -q ::
130- --quiet::
129+ `-q` ::
130+ ` --quiet` ::
131131	Operate quietly.  Progress is not reported to the standard
132132	error stream.
133133
134- -v ::
135- --verbose::
134+ `-v` ::
135+ ` --verbose` ::
136136	Run verbosely. Does not affect the reporting of progress status
137137	to the standard error stream.
138138
139- --progress::
139+ ` --progress` ::
140140	Progress status is reported on the standard error stream
141141	by default when it is attached to a terminal, unless `--quiet`
142142	is specified. This flag forces progress status even if the
143143	standard error stream is not directed to a terminal.
144144
145- --server-option=<option>::
145+ ++ --server-option=++__ <option>__ ::
146146	Transmit the given string to the server when communicating using
147147	protocol version 2.  The given string must not contain a NUL or LF
148148	character.  The server's handling of server options, including
149149	unknown ones, is server-specific.
150- 	When multiple ` --server-option=<option>`  are given, they are all
150+ 	When multiple ++ --server-option=++__ <option>__  are given, they are all
151151	sent to the other side in the order listed on the command line.
152152
153- -n ::
154- --no-checkout::
153+ `-n` ::
154+ ` --no-checkout` ::
155155	No checkout of HEAD is performed after the clone is complete.
156156
157- --[ no-] reject-shallow::
157+ `--`[` no-`]` reject-shallow` ::
158158	Fail if the source repository is a shallow repository.
159159	The `clone.rejectShallow` configuration variable can be used to
160160	specify the default.
161161
162- --bare::
162+ ` --bare` ::
163163	Make a 'bare' Git repository.  That is, instead of
164164	creating _<directory>_ and placing the administrative
165- 	files in ` <directory>/.git`, make the _<directory>_
165+ 	files in _ <directory>_` /.git`, make the _<directory>_
166166	itself the `$GIT_DIR`. This obviously implies the `--no-checkout`
167167	because there is nowhere to check out the working tree.
168168	Also the branch heads at the remote are copied directly
@@ -171,62 +171,62 @@ objects from the source repository into a pack in the cloned repository.
171171	used, neither remote-tracking branches nor the related
172172	configuration variables are created.
173173
174- --sparse::
174+ ` --sparse` ::
175175	Employ a sparse-checkout, with only files in the toplevel
176176	directory initially being present.  The
177177	linkgit:git-sparse-checkout[1] command can be used to grow the
178178	working directory as needed.
179179
180- --filter=<filter-spec>::
180+ ++ --filter=++__ <filter-spec>__ ::
181181	Use the partial clone feature and request that the server sends
182182	a subset of reachable objects according to a given object filter.
183183	When using `--filter`, the supplied _<filter-spec>_ is used for
184184	the partial clone filter. For example, `--filter=blob:none` will
185185	filter out all blobs (file contents) until needed by Git. Also,
186- 	` --filter=blob:limit=<size>`  will filter out all blobs of size
186+ 	++ --filter=blob:limit=++__ <size>__  will filter out all blobs of size
187187	at least _<size>_. For more details on filter specifications, see
188188	the `--filter` option in linkgit:git-rev-list[1].
189189
190- --also-filter-submodules::
190+ ` --also-filter-submodules` ::
191191	Also apply the partial clone filter to any submodules in the repository.
192192	Requires `--filter` and `--recurse-submodules`. This can be turned on by
193193	default by setting the `clone.filterSubmodules` config option.
194194
195- --mirror::
195+ ` --mirror` ::
196196	Set up a mirror of the source repository.  This implies `--bare`.
197197	Compared to `--bare`, `--mirror` not only maps local branches of the
198198	source to local branches of the target, it maps all refs (including
199199	remote-tracking branches, notes etc.) and sets up a refspec configuration such
200200	that all these refs are overwritten by a `git remote update` in the
201201	target repository.
202202
203- -o  <name>::
204- --origin  <name>::
203+ `-o` _ <name>_ ::
204+ ` --origin` _ <name>_ ::
205205	Instead of using the remote name `origin` to keep track of the upstream
206206	repository, use _<name>_.  Overrides `clone.defaultRemoteName` from the
207207	config.
208208
209- -b  <name>::
210- --branch  <name>::
209+ `-b` _ <name>_ ::
210+ ` --branch` _ <name>_ ::
211211	Instead of pointing the newly created HEAD to the branch pointed
212212	to by the cloned repository's HEAD, point to _<name>_ branch
213213	instead. In a non-bare repository, this is the branch that will
214214	be checked out.
215215	`--branch` can also take tags and detaches the HEAD at that commit
216216	in the resulting repository.
217217
218- -u  <upload-pack>::
219- --upload-pack  <upload-pack>::
218+ `-u` _ <upload-pack>_ ::
219+ ` --upload-pack` _ <upload-pack>_ ::
220220	When given, and the repository to clone from is accessed
221221	via ssh, this specifies a non-default path for the command
222222	run on the other end.
223223
224- --template=<template-directory>::
224+ ++ --template=++__ <template-directory>__ ::
225225	Specify the directory from which templates will be used;
226226	(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
227227
228- -c  <key>= <value>::
229- --config  <key>= <value>::
228+ `-c` __ <key>__++=++__ <value>__ ::
229+ ` --config` __ <key>__++=++__ <value>__ ::
230230	Set a configuration variable in the newly-created repository;
231231	this takes effect immediately after the repository is
232232	initialized, but before the remote history is fetched or any
@@ -239,25 +239,25 @@ objects from the source repository into a pack in the cloned repository.
239239Due to limitations of the current implementation, some configuration
240240variables do not take effect until after the initial fetch and checkout.
241241Configuration variables known to not take effect are:
242- ` remote.<name>.mirror`  and ` remote.<name>.tagOpt` .  Use the
242+ ++ remote.++__ <name>__++ .mirror++  and ++ remote.++__ <name>__++ .tagOpt++ .  Use the
243243corresponding `--mirror` and `--no-tags` options instead.
244244
245- --depth  <depth>::
245+ ` --depth` _ <depth>_ ::
246246	Create a 'shallow' clone with a history truncated to the
247247	specified number of commits. Implies `--single-branch` unless
248248	`--no-single-branch` is given to fetch the histories near the
249249	tips of all branches. If you want to clone submodules shallowly,
250250	also pass `--shallow-submodules`.
251251
252- --shallow-since=<date>::
252+ ++ --shallow-since=++__ <date>__ ::
253253	Create a shallow clone with a history after the specified time.
254254
255- --shallow-exclude=<revision>::
255+ ++ --shallow-exclude=++__ <revision>__ ::
256256	Create a shallow clone with a history, excluding commits
257257	reachable from a specified remote branch or tag.  This option
258258	can be specified multiple times.
259259
260- --[ no-] single-branch::
260+ `--`[` no-`]` single-branch` ::
261261	Clone only the history leading to the tip of a single branch,
262262	either specified by the `--branch` option or the primary
263263	branch remote's `HEAD` points at.
@@ -267,7 +267,7 @@ corresponding `--mirror` and `--no-tags` options instead.
267267	branch when `--single-branch` clone was made, no remote-tracking
268268	branch is created.
269269
270- --no-tags::
270+ ` --no-tags` ::
271271	Don't clone any tags, and set
272272	`remote.<remote>.tagOpt=--no-tags` in the config, ensuring
273273	that future `git pull` and `git fetch` operations won't follow
@@ -279,7 +279,7 @@ maintain a branch with no references other than a single cloned
279279branch. This is useful e.g. to maintain minimal clones of the default
280280branch of some repository for search indexing.
281281
282- --recurse-submodules[= <pathspec>]::
282+ ` --recurse-submodules`[`=`{empty}__ <pathspec>__ ]::
283283	After the clone is created, initialize and clone submodules
284284	within based on the provided _<pathspec>_.  If no _=<pathspec>_ is
285285	provided, all submodules are initialized and cloned.
@@ -295,46 +295,46 @@ the clone is finished. This option is ignored if the cloned repository does
295295not have a worktree/checkout (i.e. if any of `--no-checkout`/`-n`, `--bare`,
296296or `--mirror` is given)
297297
298- --[ no-] shallow-submodules::
298+ `--`[` no-`]` shallow-submodules` ::
299299	All submodules which are cloned will be shallow with a depth of 1.
300300
301- --[ no-] remote-submodules::
301+ `--`[` no-`]` remote-submodules` ::
302302	All submodules which are cloned will use the status of the submodule's
303303	remote-tracking branch to update the submodule, rather than the
304304	superproject's recorded SHA-1. Equivalent to passing `--remote` to
305305	`git submodule update`.
306306
307- --separate-git-dir=<git-dir>::
307+ ` --separate-git-dir=`{empty}__ <git-dir>__ ::
308308	Instead of placing the cloned repository where it is supposed
309309	to be, place the cloned repository at the specified directory,
310310	then make a filesystem-agnostic Git symbolic link to there.
311311	The result is Git repository can be separated from working
312312	tree.
313313
314- --ref-format=<ref-format>::
314+ ` --ref-format=`{empty}__ <ref-format>__ ::
315315
316316Specify the given ref storage format for the repository. The valid values are:
317317+
318318include::ref-storage-format.txt[]
319319
320- -j  <n>::
321- --jobs  <n>::
320+ `-j` _ <n>_ ::
321+ ` --jobs` _ <n>_ ::
322322	The number of submodules fetched at the same time.
323323	Defaults to the `submodule.fetchJobs` option.
324324
325- <repository>::
325+ _ <repository>_ ::
326326	The (possibly remote) _<repository>_ to clone from.  See the
327327	<<URLS,GIT URLS>> section below for more information on specifying
328328	repositories.
329329
330- <directory>::
330+ _ <directory>_ ::
331331	The name of a new directory to clone into.  The "humanish"
332332	part of the source repository is used if no _<directory>_ is
333333	explicitly given (`repo` for `/path/to/repo.git` and `foo`
334334	for `host.xz:foo/.git`).  Cloning into an existing directory
335335	is only allowed if the directory is empty.
336336
337- --bundle-uri=<uri>::
337+ ` --bundle-uri=`{empty}__ <uri>__ ::
338338	Before fetching from the remote, fetch a bundle from the given
339339	_<uri>_ and unbundle the data into the local repository. The refs
340340	in the bundle will be stored under the hidden `refs/bundle/*`
0 commit comments