mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
10 lines
146 B
Bash
Executable file
10 lines
146 B
Bash
Executable file
#!/bin/sh
|
|
|
|
branch=$1
|
|
|
|
test -z $branch && echo "branch required." && exit 1
|
|
|
|
git symbolic-ref HEAD refs/heads/$branch
|
|
rm .git/index
|
|
git clean -fdx
|