Anonymous committed e66ab03

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 <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 31b9755

Comments (0)

Files changed (3)


 don't want it:
 	# remove 'broken' branch
-	rm .git/refs/heads/broken
+	git branch -d broken
 	# Prune old objects if you're really really sure
 	git prune


 nor tag anymore, so remove them:
-$ rm -f .git/refs/tags/pu-anchor .git/refs/heads/revert-c99
+$ rm -f .git/refs/tags/pu-anchor 
+$ git branch -d revert-c99
 It was an emergency fix, so we might as well merge it into the


 is empty.  At this point the branch can be deleted:
- $ rm .git/refs/heads/branchname
+ $ git branch -d branchname
 Some changes are so trivial that it is not necessary to create a separate
 branch and then merge into each of the test and release branches.  For