summaryrefslogtreecommitdiff
path: root/Documentation/git-remote.txt
diff options
context:
space:
mode:
authorFinn Arne Gangstad <finnag@pvv.org>2009-04-03 11:03:44 +0200
committerJunio C Hamano <gitster@pobox.com>2009-04-05 01:52:38 -0700
commitefa54803cb1dc15923799f94abf82cb0433c2b9b (patch)
tree6cb4725a694addf74782160c0ccf06795cbd9fb9 /Documentation/git-remote.txt
parentb92c5f228a9c07fe339c8fd5406069602b6452f6 (diff)
downloadgit-efa54803cb1dc15923799f94abf82cb0433c2b9b.tar.gz
git remote update: New option --prune
With the --prune (or -p) option, git remote update will also prune all the remotes that it fetches. Previously, you had to do a manual git remote prune <remote> for each of the remotes you wanted to prune, and this could be tedious with many remotes. A single command will now update a set of remotes, and remove all stale branches: git remote update -p [group] Signed-off-by: Finn Arne Gangstad <finnag@pvv.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-remote.txt')
-rw-r--r--Documentation/git-remote.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
index c9c0e6f932..0b6e67dbca 100644
--- a/Documentation/git-remote.txt
+++ b/Documentation/git-remote.txt
@@ -16,7 +16,7 @@ SYNOPSIS
'git remote set-head' <name> [-a | -d | <branch>]
'git remote show' [-n] <name>
'git remote prune' [-n | --dry-run] <name>
-'git remote update' [group]
+'git remote update' [-p | --prune] [group]
DESCRIPTION
-----------
@@ -125,6 +125,8 @@ the configuration parameter remotes.default will get used; if
remotes.default is not defined, all remotes which do not have the
configuration parameter remote.<name>.skipDefaultUpdate set to true will
be updated. (See linkgit:git-config[1]).
++
+With `--prune` option, prune all the remotes that are updated.
DISCUSSION