diff --git a/build.sh b/build.sh
index 695b20d..131882f 100644
--- a/build.sh
+++ b/build.sh
@@ -8,6 +8,8 @@ hugo --cleanDestinationDir
 
 sudo rsync -av --delete ./public/ /var/www/pol/public/
 
+git pull --rebase
+
 git add .
 
 git commit -S -m "$1"