Skip to content

Commit 6db2103

Browse files
Uwe Kleine-Königgitster
authored andcommitted
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 <[email protected]> Cc: Darren 'Some People' Hart <[email protected]> Cc: Michael J Gruber <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c03c831 commit 6db2103

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Documentation/git-clone.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ objects from the source repository into a pack in the cloned repository.
128128
configuration variables are created.
129129

130130
--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.
132137

133138
--origin <name>::
134139
-o <name>::

0 commit comments

Comments
 (0)