Skip to content

Commit

Permalink
Use -d to avoid deleting an unmerged branch by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
agorf authored and tj committed Aug 27, 2010
1 parent 468ceaa commit b8c9f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git-delete-branch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

test -z $1 && echo "branch required." && exit 1
git branch -D $1
git push origin :$1
git branch -d $@
git push origin :$1

0 comments on commit b8c9f0e

Please sign in to comment.