想分享这个推送脚本的一个原因是,在发版日,它可以解决我们工作中遇到多个项目需要一起发版,比较实用,节省效率。
@echo off
echo "-------Begin-------"
D:
echo "start tradesz"
cd D:\code\yaoling-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:\code\yaoling-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:\code\yaoling-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:\code\yaoling-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:\code\yaoling-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