I set up .git in a directory on my local machine. I then run:
mkdir a cd a git init git daemon
When I attempt to clone the repository in a, I get the following error:
mkdir b cd b git clone git://127.0.0.1 Initialized empty Git repository in /b/127.0.0.1/.git/ fatal: The remote end hung up unexpectedly
How can I clone my repository over the git protocol?
You need to let
git-daemonknow it may export your repository:A far better way is to run it from
xinetd. Create and tweak/etc/xinetd.d/gitalong the lines ofDon't forget to
sudo killall -HUP xinetd. Now, all git repositories beneath/pub/scmwill be available to anyone who asks.