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