Skip to content

Commit d2f5540

Browse files
qnerdenkenden
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]>
1 parent 8dca754 commit d2f5540

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
@@ -23,7 +23,7 @@ DESCRIPTION
2323

2424
Clones a repository into a newly created directory, creates
2525
remote-tracking branches for each branch in the cloned repository
26-
(visible using `git branch -r`), and creates and checks out an
26+
(visible using `git branch --remotes`), and creates and checks out an
2727
initial branch that is forked from the cloned repository's
2828
currently active branch.
2929

@@ -81,13 +81,13 @@ which automatically call `git gc --auto`. (See linkgit:git-gc[1].)
8181
If these objects are removed and were referenced by the cloned repository,
8282
then the cloned repository will become corrupt.
8383
+
84-
Note that running `git repack` without the `-l` option in a repository
85-
cloned with `-s` will copy objects from the source repository into a pack
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
84+
Note that running `git repack` without the `--local` option in a repository
85+
cloned with `--shared` will copy objects from the source repository into a pack
86+
in the cloned repository, removing the disk space savings of `clone --shared`.
87+
It is safe, however, to run `git gc`, which uses the `--local` option by
8888
default.
8989
+
90-
If you want to break the dependency of a repository cloned with `-s` on
90+
If you want to break the dependency of a repository cloned with `--shared` on
9191
its source repository, you can simply run `git repack -a` to copy all
9292
objects from the source repository into a pack in the cloned repository.
9393

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

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

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

0 commit comments

Comments
 (0)