From fd7489434234414c32699bf6967a27a4f352d582 Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Tue, 28 Jun 2016 12:38:28 +0300 Subject: Fix rsync command in GH Pages tutorial --- web/tutorials/github-pages-tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/tutorials') diff --git a/web/tutorials/github-pages-tutorial.md b/web/tutorials/github-pages-tutorial.md index 77d370f..67410bd 100644 --- a/web/tutorials/github-pages-tutorial.md +++ b/web/tutorials/github-pages-tutorial.md @@ -168,7 +168,7 @@ git stash pop Earlier it was mentioned a flaw is that deleted files will persist in the published site until deleted manually. This is easily overcome by using `rsync` instead of `cp`. ``` -rsync -a --filter='P _site/' --delete-excluded _site/ . +rsync -a --filter='P _site/' --filter='P _cache/' --filter='P .git/' --filter='P .gitignore' --delete-excluded _site/ . ``` The only drawback this approach has is the requirement that *every* file in your site "go through" Hakyll. Fortunately, in many cases this is not an issue. -- cgit v1.2.3