Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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

share|improve this answer
Why would it not matter? Isn't the point of this so that anyone who admins your server can find it? If everyone put their repositories where they wanted to, would that not be an issue? Why have any standard at all if that is the case? – jmq Feb 25 '12 at 22:53
Since you already did some reseach on your own a couldn't find a good standard that may just indicate there is none. While following standards certainly helps when working with other sysadmins, sometimes you just have to make local decisions and then document them – Zoredache Feb 26 '12 at 2:29

"The Proper Location" is location, there all local users (ssh:// in mind) can read and write repo files according to their rights.

Nothing more, nothing less

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.