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

[PATCH 4/4] git-push: add documentation for the newly added --mirror mode

From
Andy Whitcroft <apw@shadowen.org>
Date
Nov 9, 2007, 23:30 UTC
Message-ID
<1194651177.0@pinky>
In-Reply-To
<20071109233041.GC301@shadowen.org>
Add some basic documentation on the --mirror mode for git-push.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
---
 Documentation/git-push.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
index e5dd4c1..3fa5992 100644
--- a/Documentation/git-push.txt
+++ b/Documentation/git-push.txt
@@ -63,6 +63,14 @@ the remote repository.
 	Instead of naming each ref to push, specifies that all
 	refs under `$GIT_DIR/refs/heads/` be pushed.
 
+\--mirror::
+	Instead of naming each ref to push, specifies that all
+	refs under `$GIT_DIR/refs/heads/` and `$GIT_DIR/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
+	will be removed from the remote end.
+
 \--dry-run::
 	Do everything except actually send the updates.
 
Previous: Andy WhitcroftNext: Andy Whitcroft
Message 5 of 7 in “git push mirror mode V4 (replacement stack)”
  1. Andy WhitcroftNov 9, 2007
  2. 1/4 Teach send-pack a mirror modeAndy Whitcroft, Nov 9, 2007
  3. 3/4 Add tests for git push'es mirror modeAndy Whitcroft, Nov 9, 2007
  4. 2/4 git-push: plumb in --mirror modeAndy Whitcroft, Nov 9, 2007
  5. 4/4 git-push: add documentation for the newly added --mirror modeAndy Whitcroft, Nov 9, 2007
  6. Andy WhitcroftNov 12, 2007
  7. Junio C HamanoNov 12, 2007

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.