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

[PATCH v2 2/4] doc/clone: Pick more compelling paths for the --reference example

From
W. Trevor King <wking@tremily.us>
Date
Jun 22, 2013, 14:46 UTC
Message-ID
<79c2444a4fc73cbf699f571351780ce59f5d8785.1371911897.git.wking@tremily.us>
In-Reply-To
<cover.1371911897.git.wking@tremily.us>
From: "W. Trevor King" <wking@tremily.us>

There may be times when using one of your local repositories as a reference for a new clone make sense, but the implied version-bump in the old example isn't one of them. I think a more intuitive example is multi-user system with a central reference clone, and the new paths hint at this use case.

Signed-off-by: W. Trevor King <wking@tremily.us>
---
 Documentation/git-clone.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index cec6fc1..bf05ada 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -257,10 +257,10 @@ $ git show-branch
 * Clone from upstream while borrowing from an existing local directory:
 +
 ------------
-$ git clone --reference my2.6 \
-	git://git.kernel.org/pub/scm/.../linux-2.7 \
-	my2.7
-$ cd my2.7
+$ git clone --reference /git/linux.git \
+	git://git.kernel.org/pub/scm/.../linux.git \
+	my-linux
+$ cd my-linux
 ------------
 
 
-- 
1.8.3
Previous: W. Trevor KingNext: W. Trevor King
Message 10 of 18 in “Update linux-2.6.git location and repo size”
  1. 0/2 Update linux-2.6.git location and repo sizeW. Trevor King, Jun 19, 2013
  2. 1/2 Documentation: Update 'linux-2.6.git' -> 'linux.git'W. Trevor King, Jun 19, 2013
  3. David AguilarJun 19, 2013
  4. W. Trevor KingJun 19, 2013
  5. Junio C HamanoJun 19, 2013
  6. W. Trevor KingJun 19, 2013
  7. Junio C HamanoJun 19, 2013
  8. 0/4 Update linux-2.6.git location and related examplesW. Trevor King, Jun 22, 2013
  9. 1/4 doc/clone: Remove the '--bare -l -s' exampleW. Trevor King, Jun 22, 2013
  10. 2/4 doc/clone: Pick more compelling paths for the --reference exampleW. Trevor King, Jun 22, 2013
  11. 3/4 Documentation: Update the NFS remote examples to use the staging repoW. Trevor King, Jun 22, 2013
  12. 4/4 Documentation: Update 'linux-2.6.git' -> 'linux.git'W. Trevor King, Jun 22, 2013
  13. W. Trevor KingJun 30, 2013
  14. Junio C HamanoJun 30, 2013
  15. W. Trevor KingJun 30, 2013
  16. 2/2 user-manual: Update download size for Git and the kernelW. Trevor King, Jun 19, 2013
  17. Junio C HamanoJun 19, 2013
  18. W. Trevor KingJun 22, 2013

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.