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

6 lines
123 B
Bash
Executable file

#!/bin/sh
test -z $1 && echo "branch required." && exit 1
git symbolic-ref HEAD refs/heads/$1
rm .git/index
git clean -fdx