REM Script di replica su altri rami di un branch git REM l'argomento รจ il replication level: REM 0 = solo locale REM 1 = locale + ramo current remoto REM 2 = .. + develop/master remoto REM 3 = .. + stable (install) remoto REM 4 = locale + full remoto ECHO off set baseBranch=%1 set pushRemote=%2 git push . %baseBranch%:beta git push . %baseBranch%:develop REM git push . %baseBranch%:master REM git push . %baseBranch%:stable REM Faccio push remoto condizionale if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:%baseBranch% ) if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:beta ) if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:develop ) if %pushRemote% GTR 0 ( git push origin %baseBranch%:%baseBranch% ) if %pushRemote% GTR 0 ( git push origin %baseBranch%:beta ) if %pushRemote% GTR 0 ( git push origin %baseBranch%:develop ) if %pushRemote% GTR 1 ( git push . %baseBranch%:master ) if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:master ) if %pushRemote% GTR 1 ( git push origin %baseBranch%:master ) if %pushRemote% GTR 2 ( git push . %baseBranch%:stable ) if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:stable ) if %pushRemote% GTR 2 ( git push origin %baseBranch%:stable ) ECHO on