on master help sign in
Merge pull request #441 from Pratyush/rsync-fix
0963ad0Jasper Van der Jeugt
web/tutorials/github-pages-tutorial.md+1−1
@@ -168,7 +168,7 @@ git stash pop
168Earlier 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`.
168Earlier 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`.
169
169
170```
170```
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/ .
172```
172```
173
173
174The 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.
174The 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.