I started a git local repository, but how can I make this existing repository a bare repository?
ssh to remote server
git clone –bare -l
renamed old repository directory
renamed new repository dir to what old repository used to be
Source: https://git.wiki.kernel.org/index.php/GitFaq