summaryrefslogtreecommitdiffstats
path: root/Documentation/git-remote.txt
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-02-02 06:06:08 +0100
committerJunio C Hamano <junkio@cox.net>2007-02-02 07:06:36 +0100
commit859607dfe04260d55f5901974fdd660aebc427fa (patch)
treea02c07639cf2fd55115f403d1354d31ac839922f /Documentation/git-remote.txt
parentPull out remote listing functions in git-remote. (diff)
downloadgit-859607dfe04260d55f5901974fdd660aebc427fa.tar.xz
git-859607dfe04260d55f5901974fdd660aebc427fa.zip
Teach 'git remote' how to cleanup stale tracking branches.
Since it can be annoying to manually cleanup 40 tracking branches which were removed by the remote system, 'git remote prune <n>' can now be used to delete any tracking branches under <n> which are no longer available on the remote system. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-remote.txt')
-rw-r--r--Documentation/git-remote.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
index 358c1acfc3..817651eaa4 100644
--- a/Documentation/git-remote.txt
+++ b/Documentation/git-remote.txt
@@ -12,6 +12,7 @@ SYNOPSIS
'git-remote'
'git-remote' add <name> <url>
'git-remote' show <name>
+'git-remote' prune <name>
DESCRIPTION
-----------
@@ -26,6 +27,10 @@ update remote-tracking branches <name>/<branch>.
In the third form, gives some information about the remote <name>.
+In the fourth form, deletes all stale tracking branches under <name>.
+These stale branches have already been removed from the remote repository
+referenced by <name>, but are still locally available in "remotes/<name>".
+
The remote configuration is achieved using the `remote.origin.url` and
`remote.origin.fetch` configuration variables. (See
gitlink:git-config[1]).