Files
CMS-MTConn/gitSpread.bat
T
Samuele E. Locatelli 3213b0049a update gitSpread + refresh
2021-07-22 18:18:23 +02:00

29 lines
1.1 KiB
Batchfile

REM Script di replica su altri rami di un branch git
REM l'argomento è il replication level:
REM 0 = develop locale + ramo current remoto
REM 1 = .. + develop remoto
REM 2 = .. + master remoto
REM 3 = .. + ALL remoto
ECHO off
set baseBranch=%1
set pushRemote=%2
git push gitlab.steamware %baseBranch%:%baseBranch%
REM Faccio push remoto condizionale
if %pushRemote% GTR 0 ( git push . %baseBranch%:develop )
if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:develop )
if %pushRemote% GTR 1 ( git push . %baseBranch%:master )
if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:master )
if %pushRemote% GTR 2 ( git push . %baseBranch%:FANUC )
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:FANUC )
if %pushRemote% GTR 2 ( git push . %baseBranch%:OSAI )
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:OSAI )
if %pushRemote% GTR 2 ( git push . %baseBranch%:SIEMENS )
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:SIEMENS )
if %pushRemote% GTR 2 ( git push . %baseBranch%:KVARA )
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:KVARA )
ECHO on