From eaf556aa7baf656af6d5b0c4409875dcf223b3bc Mon Sep 17 00:00:00 2001 From: LJHG <674478778@qq.com> Date: Sat, 28 Dec 2024 18:22:29 +0800 Subject: [PATCH] push -f --- publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index 936fe86..aa03c79 100755 --- a/publish.sh +++ b/publish.sh @@ -31,7 +31,7 @@ fi # 提交并推送更改 git add -A git commit -m "Initial commit: Update site content from GitBook" -git push -u origin $BRANCH +git push -u origin $BRANCH -f if [ $? -ne 0 ]; then echo "Error: Failed to push changes to $REPO_URL" exit 1