tj.git-extras/bin/git-delete-branch

7 lines
156 B
Bash
Executable file

#!/bin/sh
branch=$1
test -z $branch && echo "branch required." && exit 1
git branch -D $branch
git branch -d -r origin/$branch && git push origin :$branch