This commit is contained in:
hailin 2025-07-08 22:15:04 +08:00
parent 8f2dab1af3
commit 26f397efc7
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ fi
# ======== 3. Git 拉取最新代码(当前目录是 git 仓库) ========
if [ -d ".git" ]; then
echo "🔄 拉取当前目录最新源码"
git reset --hard
git pull origin $(git rev-parse --abbrev-ref HEAD)
git pull
else
echo "❌ 错误:当前目录不是 git 仓库"
exit 1