mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Use -d to avoid deleting an unmerged branch by accident
This commit is contained in:
parent
468ceaa511
commit
b8c9f0e423
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue