aggiunto gitSpread.bat

This commit is contained in:
Samuele E. Locatelli
2020-11-30 14:31:18 +01:00
parent 1b718a6d95
commit e4d6d2a319
+19
View File
@@ -0,0 +1,19 @@
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
ECHO off
set baseBranch=%1
set pushRemote=%2
git push . %baseBranch%:develop
git push . %baseBranch%:master
REM Faccio push remoto condizionale
if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:%baseBranch% )
if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:develop )
if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:master )
ECHO on