14 lines
357 B
Batchfile
14 lines
357 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 checkout %1 && git reset --hard && git clean -fd && git pull && git submodule update"
|
|
ENDLOCAL
|
|
|
|
goto :eof
|
|
|
|
:err
|
|
echo usage git_switch_linux [branch]
|