fatal: http://myserverip/home/git/example.git/info/refs not found: did you run git update-server-info on the server?

Solution 1:

http://www.jedi.be/blog/2009/05/06/8-ways-to-share-your-git-repository/#apachehttp

Solution 2:

If you want to serve it via (simple) http, you need to run git-update-server-info in the repository on the server after each update.

You can automate that by making the post-update hook run it (usually the default post-update hook just needs to be enabled (make the script executable)).

With a little more configuration of your webserver git-http-backend can give you better performance.