Skip to content

Commit facc1ab

Browse files
committed
Added missing shell prompts to console blocks in git-daemon.asc
1 parent 94222b6 commit facc1ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/04-git-server/sections/git-daemon.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Basically, you need to run this command in a daemonized manner:(((git commands,
1313

1414
[source,console]
1515
----
16-
git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
16+
$ git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
1717
----
1818

1919
`--reuseaddr` allows the server to restart without waiting for old connections to time out, the `--base-path` option allows people to clone projects without specifying the entire path, and the path at the end tells the Git daemon where to look for repositories to export.
@@ -50,7 +50,7 @@ To get it running without having to reboot, you can run this:
5050

5151
[source,console]
5252
----
53-
initctl start local-git-daemon
53+
$ initctl start local-git-daemon
5454
----
5555

5656
On other systems, you may want to use `xinetd`, a script in your `sysvinit` system, or something else – as long as you get that command daemonized and watched somehow.

0 commit comments

Comments
 (0)