diff --git a/inc/to-html b/inc/to-html
index 3a29dbd..5096df7 100644
--- a/inc/to-html
+++ b/inc/to-html
@@ -56,7 +56,7 @@ to-html(){
done
rsync -a \
- --exclude "*.md" --exclude "*.sqlite3" \
+ --exclude "*.md" --exclude ".git" --exclude "*.sqlite3" \
"$dataDir/" "$destination"
rm "$tocFile" "$templateFile"