@matheusbsbs / matheus-bagliano / commits / e66ab03fcf
Fork 0

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>

Kai Ruemmler committed Nov 7, 2005 at 09:23 UTC e66ab03fcfb508efbe2b73bafc7cf0ef16430378
3 files changed +4 -3
Documentation/howto/rebase-and-edit.txt
+1 -1
@@ -63,7 +63,7 @@ And then, you can just remove the broken branch if you decide you really
63 don't want it:
64
65 # remove 'broken' branch
66 - rm .git/refs/heads/broken
66 + git branch -d broken
67
68 # Prune old objects if you're really really sure
69 git prune
Documentation/howto/revert-branch-rebase.txt
+2 -1
@@ -153,7 +153,8 @@ Everything is in the good order. I do not need the temporary branch
153 nor tag anymore, so remove them:
154
155 ------------------------------------------------
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
158 ------------------------------------------------
159
160 It was an emergency fix, so we might as well merge it into the
Documentation/howto/using-topic-branches.txt
+1 -1
@@ -166,7 +166,7 @@ output from:
166
167 is empty. At this point the branch can be deleted:
168
169 - $ rm .git/refs/heads/branchname
169 + $ git branch -d branchname
170
171 Some changes are so trivial that it is not necessary to create a separate
172 branch and then merge into each of the test and release branches. For