28 lines
903 B
Batchfile
28 lines
903 B
Batchfile
REM Script di replica su altri rami di un branch git
|
|
REM l'argomento è il replication level:
|
|
REM 0 = solo locale dev/beta
|
|
REM 1 = locale i vari "dev" + dev/beta/current remoto
|
|
REM 2 = .. + dev remoto
|
|
REM 3 = .. + APP/SDK remoto
|
|
REM 4 = locale + full (master/stable) remoto
|
|
|
|
ECHO off
|
|
set baseBranch=%1
|
|
set pushRemote=%2
|
|
|
|
git push . %baseBranch%:develop
|
|
git push gitlab.steamware %baseBranch%:%baseBranch%
|
|
|
|
REM Faccio push remoto condizionale
|
|
if %pushRemote% GTR 0 ( git push . %baseBranch%:beta )
|
|
if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:develop )
|
|
|
|
if %pushRemote% GTR 1 ( git push . %baseBranch%:SDK )
|
|
if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:beta )
|
|
|
|
if %pushRemote% GTR 2 ( git push . %baseBranch%:stable )
|
|
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:SDK )
|
|
|
|
if %pushRemote% GTR 3 ( git push gitlab.steamware %baseBranch%:stable )
|
|
|
|
ECHO on |