Skip to contentSkip to conversation

Correct documentation for git-push --mirror

PATCH New Shawn O. Pearce 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Correct documentation for git-push --mirror

This option behaves more like:

git push $url +refs/*:refs/*

then it does like:

git push $url +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*

so we should document it to be more clear about that.

---
 Documentation/git-push.txt |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Documentation/git-push.txt +2 -1
index 89e0049..f3d5d88 100644
@@ -67,7 +67,8 @@ nor in any Push line of the corresponding remotes file---see below).
 
 --mirror::
 	Instead of naming each ref to push, specifies that all
-	refs under `$GIT_DIR/refs/heads/` and `$GIT_DIR/refs/tags/`
+	refs under `$GIT_DIR/refs/` (which includes but is not
+	limited to `refs/heads/`, `refs/remotes/`, and `refs/tags/`)
 	be mirrored to the remote repository.  Newly created local
 	refs will be pushed to the remote end, locally updated refs
 	will be force updated on the remote end, and deleted refs
Signature · 1 line
1.5.6.153.g07215