Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (7 sloc) 219 Bytes
#!/bin/sh
#
echo "WARNING: this operation will lose any uncommitted changes! Kill me in the next 10 seconds if you don't want to do this"
sleep 10
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx