How to convert a normal Git repository to a bare one ?
The file structure of a bare repository gives what is inside the .git directory.
git clone --bare /path/to/repo
In order to neglect name conflict try it in different directory and then move wherever needed. Change the config file to check wherever origin repo is available.