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 <quentin.nerden@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Quentin Nerden committed
Jul 2, 2019 at 07:37 UTC
3711d1cd8984d69b61b3a3626aa88ba52fa32d48
1 file changed
+8
-8
Documentation/git-clone.txt
+8
-8
@@ -22,7 +22,7 @@ DESCRIPTION
22
23
Clones a repository into a newly created directory, creates
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
initial branch that is forked from the cloned repository's
27
currently active branch.
28
@@ -80,13 +80,13 @@ which automatically call `git gc --auto`. (See linkgit:git-gc[1].)
80
If these objects are removed and were referenced by the cloned repository,
81
then the cloned repository will become corrupt.
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
default.
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
its source repository, you can simply run `git repack -a` to copy all
91
objects from the source repository into a pack in the cloned repository.
92
@@ -127,7 +127,7 @@ objects from the source repository into a pack in the cloned repository.
127
128
--progress::
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
is specified. This flag forces progress status even if the
132
standard error stream is not directed to a terminal.
133
@@ -147,7 +147,7 @@ objects from the source repository into a pack in the cloned repository.
147
Make a 'bare' Git repository. That is, instead of
148
creating `<directory>` and placing the administrative
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
because there is nowhere to check out the working tree.
152
Also the branch heads at the remote are copied directly
153
to corresponding local branch heads, without mapping