8 lines
177 B
Bash
Executable File
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
|