42 lines
1.7 KiB
Batchfile
42 lines
1.7 KiB
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%:beta
|
|
git push . %baseBranch%:develop
|
|
git push gitlab.steamware %baseBranch%:%baseBranch%
|
|
|
|
REM Faccio push remoto condizionale
|
|
if %pushRemote% GTR 0 ( git push . %baseBranch%:ES3 )
|
|
if %pushRemote% GTR 0 ( git push . %baseBranch%:Giancarlo )
|
|
if %pushRemote% GTR 0 ( git push . %baseBranch%:MongoDb )
|
|
if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:beta )
|
|
if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:develop )
|
|
|
|
if %pushRemote% GTR 1 ( git push . %baseBranch%:ADM )
|
|
if %pushRemote% GTR 1 ( git push . %baseBranch%:MAG )
|
|
if %pushRemote% GTR 1 ( git push . %baseBranch%:TAB )
|
|
if %pushRemote% GTR 1 ( git push . %baseBranch%:SDK )
|
|
if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:ES3 )
|
|
if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:Giancarlo )
|
|
if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:MongoDb )
|
|
|
|
if %pushRemote% GTR 2 ( git push . %baseBranch%:master )
|
|
if %pushRemote% GTR 2 ( git push . %baseBranch%:stable )
|
|
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:ADM )
|
|
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:MAG )
|
|
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:TAB )
|
|
if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:SDK )
|
|
|
|
if %pushRemote% GTR 3 ( git push gitlab.steamware %baseBranch%:master )
|
|
if %pushRemote% GTR 3 ( git push gitlab.steamware %baseBranch%:stable )
|
|
|
|
ECHO on |