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