From: W. Trevor King Date: Tue, 19 Feb 2013 01:25:13 +0000 (-0500) Subject: posts:one-off-git-daemon: Add a git://192.168.1.2/ example X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b011d517afcec83ab3ec0ea62ed7949634a4c6d7;p=blog.git posts:one-off-git-daemon: Add a git://192.168.1.2/ example Sometimes requiring a project name is not useful (e.g. all students are sharing the same project). --- diff --git a/posts/One-off_Git_daemon.mdwn b/posts/One-off_Git_daemon.mdwn index 5ebbf60..e587e2f 100644 --- a/posts/One-off_Git_daemon.mdwn +++ b/posts/One-off_Git_daemon.mdwn @@ -25,5 +25,20 @@ Then you can clone with: replacing `192.168.1.2` with your public IP address (e.g. from `ip addr show scope global`). +If you don't want to bother listing `my-project` in your URLs, you can +base the daemon in the project itself (instead of in the parent +directory): + + $ cd + $ git daemon --export-all --base-path=src/my-project --verbose + +Then you can clone with: + + $ git clone git://192.168.1.2/ + +This may be more convenient if you're only sharing a single +repository. + + [[!tag tags/linux]] [[!tag tags/tools]]