Skip to content

Commit 3711d1c

Browse files
qnerdengitster
authored andcommitted
docs: git-clone: refer to long form of options
To make the doc of git-clone easier to read, refer to the long form of the options (it is easier to guess what '--verbose' is doing than '-v'). Signed-off-by: Quentin Nerden <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b697d92 commit 3711d1c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Documentation/git-clone.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ DESCRIPTION
2222

2323
Clones a repository into a newly created directory, creates
2424
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
2626
initial branch that is forked from the cloned repository's
2727
currently active branch.
2828

@@ -80,13 +80,13 @@ which automatically call `git gc --auto`. (See linkgit:git-gc[1].)
8080
If these objects are removed and were referenced by the cloned repository,
8181
then the cloned repository will become corrupt.
8282
+
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
8787
default.
8888
+
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
9090
its source repository, you can simply run `git repack -a` to copy all
9191
objects from the source repository into a pack in the cloned repository.
9292

@@ -127,7 +127,7 @@ objects from the source repository into a pack in the cloned repository.
127127

128128
--progress::
129129
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`
131131
is specified. This flag forces progress status even if the
132132
standard error stream is not directed to a terminal.
133133

@@ -147,7 +147,7 @@ objects from the source repository into a pack in the cloned repository.
147147
Make a 'bare' Git repository. That is, instead of
148148
creating `<directory>` and placing the administrative
149149
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`
151151
because there is nowhere to check out the working tree.
152152
Also the branch heads at the remote are copied directly
153153
to corresponding local branch heads, without mapping

0 commit comments

Comments
 (0)