1 In my [[gitweb]] post, I explain how to setup `git daemon` to serve
2 `git://` requests under [[Nginx]] on [[Gentoo]]. This post talks
3 about a different situation, where you want to toss up a Git daemon
4 for collaboration on your LAN. This is useful when you're teaching
5 Git to a room full of LAN-sharing students, and you don't want to
6 bother setting up public repositories more permanently.
8 Say you have a repository that you want to serve:
10 $ mkdir -p ~/src/my-project
15 Fire up the daemon (probably in another terminal so you can keep
16 hacking in your original terminal) with:
19 $ git daemon --export-all --base-path=. --verbose ./my-project
21 Then you can clone with:
23 $ git clone git://192.168.1.2/my-project
25 replacing `192.168.1.2` with your public IP address (e.g. from `ip
26 addr show scope global`).