git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 1/2] docs: git-clone: refer to long form of options

From
QGQuentin Nerden via GitGitGadget <gitgitgadget@gmail.com>
Date
Jul 2, 2019, 14:37 UTC
Message-ID
<d2f5540ea1b994a574d6ce2c300018a32d7cca73.1562078259.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.277.v2.git.gitgitgadget@gmail.com>
From: Quentin Nerden <quentin.nerden@intel.com>

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>
---
 Documentation/git-clone.txt | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index 5fc97f14de..cb3cf7a0fb 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -23,7 +23,7 @@ DESCRIPTION
 
 Clones a repository into a newly created directory, creates
 remote-tracking branches for each branch in the cloned repository
-(visible using `git branch -r`), and creates and checks out an
+(visible using `git branch --remotes`), and creates and checks out an
 initial branch that is forked from the cloned repository's
 currently active branch.
 
@@ -81,13 +81,13 @@ which automatically call `git gc --auto`. (See linkgit:git-gc[1].)
 If these objects are removed and were referenced by the cloned repository,
 then the cloned repository will become corrupt.
 +
-Note that running `git repack` without the `-l` option in a repository
-cloned with `-s` will copy objects from the source repository into a pack
-in the cloned repository, removing the disk space savings of `clone -s`.
-It is safe, however, to run `git gc`, which uses the `-l` option by
+Note that running `git repack` without the `--local` option in a repository
+cloned with `--shared` will copy objects from the source repository into a pack
+in the cloned repository, removing the disk space savings of `clone --shared`.
+It is safe, however, to run `git gc`, which uses the `--local` option by
 default.
 +
-If you want to break the dependency of a repository cloned with `-s` on
+If you want to break the dependency of a repository cloned with `--shared` on
 its source repository, you can simply run `git repack -a` to copy all
 objects from the source repository into a pack in the cloned repository.
 
@@ -128,7 +128,7 @@ objects from the source repository into a pack in the cloned repository.
 
 --progress::
 	Progress status is reported on the standard error stream
-	by default when it is attached to a terminal, unless -q
+	by default when it is attached to a terminal, unless `--quiet`
 	is specified. This flag forces progress status even if the
 	standard error stream is not directed to a terminal.
 
@@ -148,7 +148,7 @@ objects from the source repository into a pack in the cloned repository.
 	Make a 'bare' Git repository.  That is, instead of
 	creating `<directory>` and placing the administrative
 	files in `<directory>/.git`, make the `<directory>`
-	itself the `$GIT_DIR`. This obviously implies the `-n`
+	itself the `$GIT_DIR`. This obviously implies the `--no-checkout`
 	because there is nowhere to check out the working tree.
 	Also the branch heads at the remote are copied directly
 	to corresponding local branch heads, without mapping
-- 
gitgitgadget
Previous: Quentin Nerden via GitGitGadgetNext: Quentin Nerden via GitGitGadget
Message 6 of 8 in “Update git-clone doc: refer to long option”
  1. 0/1 Update git-clone doc: refer to long optionQuentin Nerden via GitGitGadget, Jun 27, 2019
  2. 1/1 docs: update git-clone doc: refer to long optionsQuentin Nerden via GitGitGadget, Jun 27, 2019
  3. Junio C HamanoJun 27, 2019
  4. Johannes SchindelinJun 28, 2019
  5. 0/2 Update git-clone doc: refer to long form of the options and list short form of the options firstQuentin Nerden via GitGitGadget, Jul 2, 2019
  6. 1/2 docs: git-clone: refer to long form of optionsQuentin Nerden via GitGitGadget, Jul 2, 2019
  7. 2/2 docs: git-clone: list short form of options firstQuentin Nerden via GitGitGadget, Jul 2, 2019
  8. Junio C HamanoJul 2, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.