From 0af4a73faa3bb242f939fcdfe6c1ac6c1db0fa89 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 26 Nov 2020 19:05:36 +0100 Subject: [PATCH] aggiunto gitSpread --- gitSpread.bat | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gitSpread.bat diff --git a/gitSpread.bat b/gitSpread.bat new file mode 100644 index 0000000..b7b7d2e --- /dev/null +++ b/gitSpread.bat @@ -0,0 +1,27 @@ +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%:develop +git push . %baseBranch%:master +git push . %baseBranch%:SDK +git push . %baseBranch%:report +git push . %baseBranch%:stable + +REM Faccio push remoto condizionale +if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:%baseBranch% ) +if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:develop ) +if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:SDK ) +if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:master ) +if %pushRemote% GTR 3 ( git push gitlab.steamware %baseBranch%:stable ) +if %pushRemote% GTR 3 ( git push gitlab.steamware %baseBranch%:report ) + +ECHO on \ No newline at end of file