第一次启动时直接切换到指定分支(dev或master)

This commit is contained in:
ngfchl
2022-10-15 22:01:49 +08:00
parent c1739a3dba
commit 578e0a9c8b

View File

@@ -13,6 +13,7 @@ if [ ! -e $CONTAINER_ALREADY_STARTED ]; then
echo "拉取PTools最新代码"
# 设置拉取最新文件并覆盖
git config pull.ff only
git checkout $DEV
git pull
git pull origin $DEV
echo "列出代码文件信息"