mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 20:38:52 +08:00
45 lines
663 B
Batchfile
45 lines
663 B
Batchfile
@REM Jpom多分支、多远端合并代码命令
|
|
|
|
@echo off
|
|
|
|
cd ../
|
|
|
|
echo 拉取远程分支[master]
|
|
call git checkout dev
|
|
|
|
call git fetch github master:master
|
|
|
|
call git fetch gitee master:master
|
|
|
|
echo 拉取远程分支[dev]
|
|
call git checkout master
|
|
|
|
call git fetch github dev:dev
|
|
|
|
call git fetch gitee dev:dev
|
|
|
|
echo 开始合并分支[master]
|
|
call git checkout dev
|
|
call git merge master
|
|
|
|
echo 开始合并分支[dev]
|
|
call git checkout master
|
|
call git merge dev
|
|
|
|
echo 推送到gitee
|
|
|
|
call git push gitee dev
|
|
|
|
call git push gitee master
|
|
|
|
echo 推送到github
|
|
call git push github dev
|
|
|
|
call git push github master
|
|
|
|
echo 推送tags
|
|
call git push github --tags
|
|
|
|
call git push gitee --tags
|
|
|
|
call git checkout dev |