diff --git a/pull-and-restart.sh b/pull-and-restart.sh index a102d35..e109ef5 100644 --- a/pull-and-restart.sh +++ b/pull-and-restart.sh @@ -248,7 +248,7 @@ fi [ -f server/.env ] && set -a && source server/.env && set +a BRANCH="${GIT_BRANCH:-master}" -echo "[1/3] 拉取代码..." +echo "[1/3] 拉取代码(以 Gitea 远程为准,本地修改会被覆盖)..." if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git fetch origin --progress git reset --hard "origin/$BRANCH"