Files
spark/tools/git_switch_linux.cmd
T

14 lines
352 B
Batchfile

@echo off
@setlocal
SETLOCAL
if "%SPARKVM_PORT%"=="" set SPARKVM_PORT=22
if "%1" == "" goto :err
echo.
ssh bts@sparkvm -p %SPARKVM_PORT% -o StrictHostKeyChecking=no -t "cd /home/bts/spark ; git reset --hard ; git clean -fd ; git checkout %1 ; git pull ; git submodule update"
ENDLOCAL
goto :eof
:err
echo usage git_switch_linux [branch]