How do I make existing non-bare repository bare?

I started a git local repository, but how can I make this existing repository a bare repository?

  1. ssh to remote server
  2. git clone --bare -l
  3. renamed old repository directory
  4. renamed new repository dir to what old repository used to be

Source: https://git.wiki.kernel.org/index.php/GitFaq

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*