Oneliner for doing all of the above operations:
for i in `ls -A .`; do if [ $i != ".git" ]; then rm -rf $i; fi; done; mv .git/* .; rm -rf .git; git config --bool core.bare true
(don't blame me if something blows up and you didn't have backups :P)