git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs: update description for '--mirror' option for 'git push'
@ 2025-08-11 14:34 Gustavo Velasco-Hernández via GitGitGadget
  2025-08-11 16:41 ` Junio C Hamano
  2025-09-16 16:03 ` [PATCH v2] " Gustavo Velasco-Hernández via GitGitGadget
  0 siblings, 2 replies; 6+ messages in thread
From: Gustavo Velasco-Hernández via GitGitGadget @ 2025-08-11 14:34 UTC (permalink / raw)
  To: git; +Cc: Gustavo Velasco-Hernández, Velasco-Hernandez, Gustavo

From: "Velasco-Hernandez, Gustavo" <Gustavo.Velasco-Hernandez@netapp.com>

The current description considers only created, updated or deleted refs
locally. However it does not address the case where new refs were created
on the remote end, in which case, are also deleted.

Signed-off-by: Gustavo Velasco-Hernandez <gustavo.velascoh@gmail.com>
---
    Docs: Update description for '--mirror' option for 'git push'

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2028%2Fgustavovelascoh%2Fgit-push-update-docs-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2028/gustavovelascoh/git-push-update-docs-v1
Pull-Request: https://github.com/git/git/pull/2028

 Documentation/git-push.adoc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/git-push.adoc b/Documentation/git-push.adoc
index d1978650d60..9d543f823de 100644
--- a/Documentation/git-push.adoc
+++ b/Documentation/git-push.adoc
@@ -166,9 +166,10 @@ already exists on the remote side.
 	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.  This is the default
-	if the configuration option `remote.<remote>.mirror` is
-	set.
+	will be removed from the remote end. Any ref existing
+	in the remote end, but not locally, will be removed too.
+	This is the default if the configuration option
+	`remote.<remote>.mirror` is set.
 
 -n::
 --dry-run::

base-commit: 2c2ba49d55ff26c1082b8137b1ec5eeccb4337d1
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-09-18 20:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 14:34 [PATCH] docs: update description for '--mirror' option for 'git push' Gustavo Velasco-Hernández via GitGitGadget
2025-08-11 16:41 ` Junio C Hamano
2025-09-16 16:03 ` [PATCH v2] " Gustavo Velasco-Hernández via GitGitGadget
2025-09-16 17:19   ` Junio C Hamano
2025-09-16 20:04     ` Kristoffer Haugsbakk
2025-09-18 20:58       ` Kristoffer Haugsbakk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).