on master help sign in
Fix rsync command in GH Pages tutorial
commitfd7489434234414c32699bf6967a27a4f352d582 authorPratyush Mishra <pratyushmishra@berkeley.edu> dateTue 28 Jun 2016, 12:38 (10 years ago) parent6ac190a
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.