Ubuntu – Standard Location for Git Repository on Ubuntu 11

gitrepositoryUbuntu

What is the proper location for storing a central git repository on an Ubuntu 11.04 server?

I read this post and there appears to be conflicting information. This is related to www, but the idea is the same.

I currently have the repository located in /var/lib/git.repo. I read the FHS and it looks like I should have chosen /srv/git.repo or /var/git.repo, which is the source of the conflicting information in that previous post.

Best Answer

I usually stick them under /srv, but in this case, it doesn't matter a whole lot.