How can I convert a \'normal\' Git repository to a bare one?
The main difference seems to be:
in the normal Git repository, you have a .git
.git
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)