From b011d517afcec83ab3ec0ea62ed7949634a4c6d7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 18 Feb 2013 20:25:13 -0500 Subject: [PATCH] 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). --- posts/One-off_Git_daemon.mdwn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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]] -- 2.26.2