Git: convert a repository from non-bare to bare








The following commands converts a non-bare repository to a bare repository:
mv /path/to/repo/.git /path/to/repo.git
rm -fr /path/to/repo
cd /path/to/repo.git; git config --bool core.bare true

See also

  1. Migrate a cvs repository to a git bare repository
  2. CVS to git Transition Guide
  3. Git Book - Set up a public repository
  4. Git Book - Set up a private repository







No comments:

Post a Comment