A tiny, self-hosted Git server for your trusted home network. No cloud, no accounts, no complexity.
Paste that in a macOS Terminal or Linux shell. Prefer Homebrew? Run brew install chris-roerig/homegit/homegit. Then homegit setup.
Keep your side projects on your own machine. Work offline and share across computers on your trusted network.
A single binary with an embedded SSH server and a read-only web browser for your repos. No separate database or accounts to maintain.
Initialize, push, and clone with familiar commands. Repositories are created automatically on first push.
Installed via the shell script? Run homegit update. Installed via Homebrew? Use brew upgrade.
Open http://your-server:8222 for a GitHub-style view: file tree, rendered READMEs, and a search box for your repos. Add a description with homegit add-meta.
Optionally limit who can connect with allowed_ips in your config. It applies to both Git and the web UI. Turn the web UI off with --no-web.
Host repositories on the machine you're using. During setup, choose “store repos on this computer.”
$ homegit setup # choose: on this computer $ homegit start # server started $ cd my-project $ homegit init $ git add . && git commit -m "Initial commit" $ git push -u origin main
Point this machine at another computer that acts as the server. Set up the server first, then connect as a client.
# on the SERVER machine $ homegit setup # choose: on this computer $ homegit start # on THIS (client) machine $ homegit setup # choose: on another computer → 10.0.0.142 $ homegit list # repos on 10.0.0.142 $ homegit clone