on master help sign in
Merge pull request #441 from Pratyush/rsync-fix

Fix rsync command in GH Pages tutorial

commit0963ad0ba49c0f9b40ba53ff5c521f0b331c8061 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateTue 28 Jun 2016, 12:51 (10 years ago) parent6ac190afd74894
1 file changed+1−1
web/tutorials/github-pages-tutorial.md+1−1
web/tutorials/github-pages-tutorial.md+1−1
@@ -168,7 +168,7 @@ git stash pop
168168Earlier 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`.
169169
170170```
171−rsync -a --filter='P _site/' --delete-excluded _site/ .
171+rsync -a --filter='P _site/' --filter='P _cache/' --filter='P .git/' --filter='P .gitignore' --delete-excluded _site/ .
172172```
173173
174174The 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.