Files
dotfiles/bin/rmbr
2020-02-05 12:29:34 +00:00

8 lines
177 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 1 ] ; then
echo Usage: $0 branch
exit 1
fi
echo Removing branch $1
git checkout $1 && git rebase master && git checkout master && git branch -d $1