redeploy更新

This commit is contained in:
wanjia 2023-08-24 09:59:02 +08:00
parent 09e2dd15a7
commit 2cbdf951f6
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ usage() {
}
modules(){
if [ "$env" = 'test' ]; then
echo "切换到develop分支"
git checkout dev
git branch --set-upstream-to=origin/dev dev
else
echo "切换到master分支"
git checkout master
fi
echo "拉取最新代码"
git pull