From: Christian Heller Date: Mon, 2 Jan 2017 02:56:09 +0000 (+0100) Subject: Fix some issues with the git recipe. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/pick_tasks?a=commitdiff_plain;h=1c7b84260b8a71cabce924814a1d36ed6567a67e;p=redo-blog Fix some issues with the git recipe. --- diff --git a/README.md b/README.md index f036e86..e4d63fa 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ called `blog`: #!/bin/sh BLOGDIR=~/blog GIT_WORK_TREE=$BLOGDIR git checkout -f - cd $BLOGDIR + cd \$BLOGDIR redo EOF chmod a+x blog.git/hooks/post-update @@ -62,14 +62,14 @@ Enable management of `~/blog` via redo-blog: Link to the `public` subdirectory from wherever your web server expects your public web content to sit: - link -s ~/blog/public /var/www/html/blog + ln -s ~/blog/public /var/www/html/blog -Client-side, do this: +Client-side, do this (obviously, replace server and username): cd ~ git init blog cd blog - git remote add origin ssh://user@example.org:~/blog.git + git remote add origin ssh://user@example.org:/home/user/blog.git mkdir metadata echo 'https://example.org/blog/' > metadata/url git add metadata/url