Documentation/git-clone: describe --mirror more verbosely
Some people in #linux-rt noticed that describing what "--mirror" option does with "it mirrors" is way insufficient. Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Darren 'Some People' Hart <darren@dvhart.com> Cc: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Uwe Kleine-König committed
Oct 4, 2010 at 19:28 UTC
6db2103f92cf6c5caeeddec0bfd5f57f94e81d81
1 file changed
+6
-1
Documentation/git-clone.txt
+6
-1
@@ -128,7 +128,12 @@ objects from the source repository into a pack in the cloned repository.
128
configuration variables are created.
129
130
--mirror::
131
- Set up a mirror of the remote repository. This implies `--bare`.
131
+ Set up a mirror of the source repository. This implies `--bare`.
132
+ Compared to `--bare`, `--mirror` not only maps local branches of the
133
+ source to local branches of the target, it maps all refs (including
134
+ remote branches, notes etc.) and sets up a refspec configuration such
135
+ that all these refs are overwritten by a `git remote update` in the
136
+ target repository.
137
138
--origin <name>::
139
-o <name>::