Tuesday, February 12, 2013

Git Clone Error "http://myserver.com/example.git/info/refs not found: did you run git update-server-info on the server?"

I got a simple solution for this issue. 

Problem

1. Git reposiory over http with ldap authentication
2. Repository authentication and listing is work perfect using browser
3. But git clone fails with “http://myserver.com/example.git/info/refs not found: did you run git update-server-info on the server?”

Solution

In the git repository server

1. Go to git repository folder(Here example.git)
2. Create a empty file with name 'git-daemon-export-ok'
[eg: $touch git-daemon-export-ok]

Then try 'git clone http://username@/example.git'

Happy coding ...:)