mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
6 lines
123 B
Bash
Executable file
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 |