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
First, backup your existing repo:
backup
(a) mkdir backup (b) cd backup (c) git clone non_bare_repo
Second, run the following:
git clone --bare -l non_bare_repo new_bare_repo