Documentation/git-branch: new -r to delete remote-tracking branches.
Signed-off-by: Quy Tonthat <qtonthat@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Quy Tonthat committed
Dec 21, 2006 at 15:18 UTC
7dda22e3174dd6e4b8b2f60fb0ad1e8f1be912ad
1 file changed
+8
-5
Documentation/git-branch.txt
+8
-5
@@ -11,7 +11,7 @@ SYNOPSIS
11
'git-branch' [-r | -a] [-v [--abbrev=<length>]]
12
'git-branch' [-l] [-f] <branchname> [<start-point>]
13
'git-branch' (-m | -M) [<oldbranch>] <newbranch>
14
-'git-branch' (-d | -D) <branchname>...
14
+'git-branch' (-d | -D) [-r] <branchname>...
15
16
DESCRIPTION
17
-----------
@@ -33,7 +33,8 @@ to happen.
33
34
With a `-d` or `-D` option, `<branchname>` will be deleted. You may
35
specify more than one branch for deletion. If the branch currently
36
-has a ref log then the ref log will also be deleted.
36
+has a ref log then the ref log will also be deleted. Use -r together with -d
37
+to delete remote-tracking branches.
38
39
40
OPTIONS
@@ -60,7 +61,7 @@ OPTIONS
61
Move/rename a branch even if the new branchname already exists.
62
63
-r::
63
- List the remote-tracking branches.
64
+ List or delete (if used with -d) the remote-tracking branches.
65
66
-a::
67
List both remote-tracking branches and local branches.
@@ -111,10 +112,12 @@ Delete unneeded branch::
112
------------
113
$ git clone git://git.kernel.org/.../git.git my.git
114
$ cd my.git
114
-$ git branch -D todo <1>
115
+$ git branch -d -r todo html man <1>
116
+$ git branch -D test <2>
117
------------
118
+
117
-<1> delete todo branch even if the "master" branch does not have all
119
+<1> delete remote-tracking branches "todo", "html", "man"
120
+<2> delete "test" branch even if the "master" branch does not have all
121
commits from todo branch.
122
123