Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (15 sloc) 246 Bytes
#!/bin/bash
branch=$1
function output_help {
echo ""
echo "usage: "
echo ""
echo " git-create-empty-branch ref"
}
if [[ $branch ]]; then
git symbolic-ref HEAD refs/heads/$branch
rm .git/index
git clean -fdx
else
output_help
fi