Skip to content

Commit e66ab03

Browse files
Kai RuemmlerJunio C Hamano
authored andcommitted
Documentation update: use git branch -d foo where applicable
This updates documentation to use git branch -d foo in favour of rm .git/refs/heads/foo Signed-off-by: Kai Ruemmler <kai.ruemmler@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 31b9755 commit e66ab03

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Documentation/howto/rebase-and-edit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ And then, you can just remove the broken branch if you decide you really
6363
don't want it:
6464

6565
# remove 'broken' branch
66-
rm .git/refs/heads/broken
66+
git branch -d broken
6767

6868
# Prune old objects if you're really really sure
6969
git prune

Documentation/howto/revert-branch-rebase.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ Everything is in the good order. I do not need the temporary branch
153153
nor tag anymore, so remove them:
154154

155155
------------------------------------------------
156-
$ rm -f .git/refs/tags/pu-anchor .git/refs/heads/revert-c99
156+
$ rm -f .git/refs/tags/pu-anchor
157+
$ git branch -d revert-c99
157158
------------------------------------------------
158159

159160
It was an emergency fix, so we might as well merge it into the

Documentation/howto/using-topic-branches.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ output from:
166166

167167
is empty. At this point the branch can be deleted:
168168

169-
$ rm .git/refs/heads/branchname
169+
$ git branch -d branchname
170170

171171
Some changes are so trivial that it is not necessary to create a separate
172172
branch and then merge into each of the test and release branches. For

0 commit comments

Comments
 (0)