@@ -41,8 +41,8 @@ configuration variables.
41
41
42
42
OPTIONS
43
43
-------
44
- --local::
45
44
-l::
45
+ --local::
46
46
When the repository to clone from is on a local machine,
47
47
this flag bypasses the normal "Git aware" transport
48
48
mechanism and clones the repository by making a copy of
@@ -63,8 +63,8 @@ Git transport instead.
63
63
directory instead of using hardlinks. This may be desirable
64
64
if you are trying to make a back-up of your repository.
65
65
66
- --shared::
67
66
-s::
67
+ --shared::
68
68
When the repository to clone is on the local machine,
69
69
instead of using hard links, automatically setup
70
70
`.git/objects/info/alternates` to share the objects
@@ -81,10 +81,10 @@ which automatically call `git gc --auto`. (See linkgit:git-gc[1].)
81
81
If these objects are removed and were referenced by the cloned repository,
82
82
then the cloned repository will become corrupt.
83
83
+
84
- Note that running `git repack` without the `-l ` option in a repository
84
+ Note that running `git repack` without the `--local ` option in a repository
85
85
cloned with `-s` will copy objects from the source repository into a pack
86
86
in the cloned repository, removing the disk space savings of `clone -s`.
87
- It is safe, however, to run `git gc`, which uses the `-l ` option by
87
+ It is safe, however, to run `git gc`, which uses the `--local ` option by
88
88
default.
89
89
+
90
90
If you want to break the dependency of a repository cloned with `-s` on
@@ -116,19 +116,19 @@ objects from the source repository into a pack in the cloned repository.
116
116
same repository, and this option can be used to stop the
117
117
borrowing.
118
118
119
- --quiet::
120
119
-q::
120
+ --quiet::
121
121
Operate quietly. Progress is not reported to the standard
122
122
error stream.
123
123
124
- --verbose::
125
124
-v::
125
+ --verbose::
126
126
Run verbosely. Does not affect the reporting of progress status
127
127
to the standard error stream.
128
128
129
129
--progress::
130
130
Progress status is reported on the standard error stream
131
- by default when it is attached to a terminal, unless -q
131
+ by default when it is attached to a terminal, unless `--quiet`
132
132
is specified. This flag forces progress status even if the
133
133
standard error stream is not directed to a terminal.
134
134
@@ -140,15 +140,15 @@ objects from the source repository into a pack in the cloned repository.
140
140
When multiple `--server-option=<option>` are given, they are all
141
141
sent to the other side in the order listed on the command line.
142
142
143
- --no-checkout::
144
143
-n::
144
+ --no-checkout::
145
145
No checkout of HEAD is performed after the clone is complete.
146
146
147
147
--bare::
148
148
Make a 'bare' Git repository. That is, instead of
149
149
creating `<directory>` and placing the administrative
150
150
files in `<directory>/.git`, make the `<directory>`
151
- itself the `$GIT_DIR`. This obviously implies the `-n `
151
+ itself the `$GIT_DIR`. This obviously implies `--no-checkout `
152
152
because there is nowhere to check out the working tree.
153
153
Also the branch heads at the remote are copied directly
154
154
to corresponding local branch heads, without mapping
@@ -164,22 +164,22 @@ objects from the source repository into a pack in the cloned repository.
164
164
that all these refs are overwritten by a `git remote update` in the
165
165
target repository.
166
166
167
- --origin <name>::
168
167
-o <name>::
168
+ --origin <name>::
169
169
Instead of using the remote name `origin` to keep track
170
170
of the upstream repository, use `<name>`.
171
171
172
- --branch <name>::
173
172
-b <name>::
173
+ --branch <name>::
174
174
Instead of pointing the newly created HEAD to the branch pointed
175
175
to by the cloned repository's HEAD, point to `<name>` branch
176
176
instead. In a non-bare repository, this is the branch that will
177
177
be checked out.
178
178
`--branch` can also take tags and detaches the HEAD at that commit
179
179
in the resulting repository.
180
180
181
- --upload-pack <upload-pack>::
182
181
-u <upload-pack>::
182
+ --upload-pack <upload-pack>::
183
183
When given, and the repository to clone from is accessed
184
184
via ssh, this specifies a non-default path for the command
185
185
run on the other end.
@@ -188,8 +188,8 @@ objects from the source repository into a pack in the cloned repository.
188
188
Specify the directory from which templates will be used;
189
189
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
190
190
191
- --config <key>=<value>::
192
191
-c <key>=<value>::
192
+ --config <key>=<value>::
193
193
Set a configuration variable in the newly-created repository;
194
194
this takes effect immediately after the repository is
195
195
initialized, but before the remote history is fetched or any
@@ -274,8 +274,8 @@ or `--mirror` is given)
274
274
The result is Git repository can be separated from working
275
275
tree.
276
276
277
- -j <n>::
278
277
--jobs <n>::
278
+ -j <n>::
279
279
The number of submodules fetched at the same time.
280
280
Defaults to the `submodule.fetchJobs` option.
281
281
0 commit comments