public
Description: Utilities for Git users
Homepage:
Clone URL: git://github.com/cv/git-utils.git
git-utils / git-empty-branch
100755 7 lines (5 sloc) 0.087 kb
1
2
3
4
5
6
7
#!/bin/sh
 
git stash
git symbolic-ref HEAD refs/heads/$1
rm .git/index
git clean -f -d