代码语言: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