mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Don't fail if the local branch doesn't exist
This commit is contained in:
parent
a3cbb7df9a
commit
ce43c42087
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
test -z $1 && echo "branch required." && exit 1
|
||||
git branch -d $1 && git branch -d -r origin/$1 && git push origin :$1
|
||||
git branch -d $1
|
||||
git branch -d -r origin/$1 && git push origin :$1
|
||||
|
|
|
|||
Loading…
Reference in a new issue