can you recommend any no-brainer solution for setting up a git repository accessible via http(s, has cleutus suggested)? I have my own http server and I'd like to use it to host some minor private project. At home I can ssh it, but at work firewalls keep me from doing so.
Is there any free way to set up a small private git repository I can push / fetch to via http so that I can share projects between home and work? Thanks in advance!
webDAV is not required
And what is more, DAV is significantly slower than the new "smart-http" support since git 1.6.6. The new method allows the entire pack to be transmitted at once, and not as individual files.
You can also use gitweb to provide browsable URLs at the same location.
Note: Because access is controlled by apache you can add any Auth requirements (htaccess or ldap, etc) to the setup for each repository.
Just make a new git_support.conf file, and include it in apache (add include statement in httpd.conf)
The result is the ability to push/pull:
And you can browse those changes online..
Source: http://repo.or.cz/w/alt-git.git?a=blob_plain;f=gitweb/README
Git supports this natively. You'll need an HTTP server, of course.
Put your (bare) repository in a folder that can be accessed by your web server. In that directory, run the following commands:
The first command provides extra information so the web server knows what to do with the repository. The second command makes sure that the information gets updated any time someone pushes to the repository.
You can find that information here: http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#setting-up-a-public-repository