Skip to content

Commit f22a654

Browse files
wkinggitster
authored andcommitted
doc/clone: Pick more compelling paths for the --reference example
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c8fc53 commit f22a654

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/git-clone.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ $ git show-branch
257257
* Clone from upstream while borrowing from an existing local directory:
258258
+
259259
------------
260-
$ git clone --reference my2.6 \
261-
git://git.kernel.org/pub/scm/.../linux-2.7 \
262-
my2.7
263-
$ cd my2.7
260+
$ git clone --reference /git/linux.git \
261+
git://git.kernel.org/pub/scm/.../linux.git \
262+
my-linux
263+
$ cd my-linux
264264
------------
265265

266266

0 commit comments

Comments
 (0)