Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I've been crawling the interwebz and getting my hands dirty for the last few days, but I can't seem to make it all work together.

I managed to get a HTTP repo working with Ubuntu 10.04 over Smart HTTP (pull and push over HTTP) for a single repo. This means that I do the initial setup over SSH to the server (git init --bare) and after that the clients can pull and push to it (git clone http://servername/allgitrepos/repo.git).

Unfortunately it's impossible to add a new repo without SSHing to the server and adding it manually) i.e. git push http://servername/allgitrepos/repo2.git (allgitrepos is available for everyone to read-write and execute) would fail talking about git update-server-info (which seems to be a general error message).

So far the repository is anonymous, so I would like to authenticate using LDAP and also use the LDAP creds to make the git commit.

So, how can I push new repos to the server and how can I use the LDAP creds to make the git commit.


Edit 1

  1. Can it be done using git-remote?
share|improve this question

Sounds like gitolite might suit your needs.

I don't recall if it was available for 10.04 via apt-get but you can clone it (via git of course) from

share|improve this answer

You can't easily achieve this. The git remote protocols don't have a way of creating repositories as a side effect of git push. You could write a wrapper around git that automatically creates repos when you try to push.

share|improve this answer
Ok. So I would have to set-up the basic layout of the repository on the server first. Then I guess users could add submodules. – ALOToverflow Dec 18 '12 at 18:58

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.