This commit is contained in:
parent
8f2dab1af3
commit
26f397efc7
|
|
@ -24,8 +24,7 @@ fi
|
||||||
# ======== 3. Git 拉取最新代码(当前目录是 git 仓库) ========
|
# ======== 3. Git 拉取最新代码(当前目录是 git 仓库) ========
|
||||||
if [ -d ".git" ]; then
|
if [ -d ".git" ]; then
|
||||||
echo "🔄 拉取当前目录最新源码"
|
echo "🔄 拉取当前目录最新源码"
|
||||||
git reset --hard
|
git pull
|
||||||
git pull origin $(git rev-parse --abbrev-ref HEAD)
|
|
||||||
else
|
else
|
||||||
echo "❌ 错误:当前目录不是 git 仓库"
|
echo "❌ 错误:当前目录不是 git 仓库"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue