From f890c1902bc960b713fc4c99f8a67e59fb564b35 Mon Sep 17 00:00:00 2001 From: starcells Date: Fri, 20 Mar 2026 23:57:18 +0800 Subject: [PATCH] Adjusted deploy. --- deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index f49734d..830a2e6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,7 +4,9 @@ BLOGDIR=/var/www/myblog cd $BLOGDIR -/usr/bin/git pull origin master --force +/usr/bin/git fetch --all +/usr/bin/git reset --hard origin/master +/usr/bin/git pull /usr/bin/git submodule update --init --recursive /usr/bin/hugo --gc --minify