一招教你一秒发版

2024-01-18 21:29:50 浏览数 (1)

想分享这个推送脚本的一个原因是,在发版日,它可以解决我们工作中遇到多个项目需要一起发版,比较实用,节省效率。

代码语言:javascript复制
@echo off
echo "-------Begin-------"
D:

echo "start tradesz"
cd D:codeyaoling-gpo-fe-tradesz
git status
git checkout master
git pull
git merge origin test
git push
git checkout test 
echo "深圳"

echo "start tradehzplus"
cd D:codeyaoling-gpo-fe-tradehzplus
git status
git checkout master
git pull
git merge origin test
git push
git checkout test 
echo "惠州"

echo "start trademzplus"
cd D:codeyaoling-gpo-fe-trademzplus
git status
git checkout master
git pull
git merge origin test
git push
git checkout test 
echo "梅州"

echo "start tradeyjplus"
cd D:codeyaoling-gpo-fe-tradeyjplus
git status
git checkout master
git pull
git merge origin test
git push
git checkout test 
echo "阳江"

echo "start tradeplusdg"
cd D:codeyaoling-gpo-fe-tradeplusdg
git status
git checkout master
git pull
git merge origin test
git push
git checkout test 
echo "16合1"


echo "--------End!--------"
pause

0 人点赞