@@ -86,7 +86,7 @@ stack exec myblog build
86Update the local list of remote branches to ensure we're able to checkout the branch we want in the next step.
86Update the local list of remote branches to ensure we're able to checkout the branch we want in the next step.
89−git fetch -all
89+git fetch --all
92Switch to the `master` branch.
92Switch to the `master` branch.
@@ -142,7 +142,7 @@ stack exec myblog clean
142stack exec myblog build
142stack exec myblog build
144# Get previous files
144# Get previous files
145−git fetch -all
145+git fetch --all
146git checkout -b master --track origin/master
146git checkout -b master --track origin/master
148# Overwrite existing files with new files
148# Overwrite existing files with new files
@@ -168,7 +168,13 @@ 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`.
171−rsync -a --filter='P _site/' --filter='P _cache/' --filter='P .git/' --filter='P .gitignore' --delete-excluded _site/ .
171+rsync -a --filter='P _site/' \
172+ --filter='P _cache/' \
173+ --filter='P .git/' \
174+ --filter='P .gitignore' \
175+ --filter='P .stack-work' \
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.
180The 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.