12345678910111213141516171819202122232425 |
- :: Upload changes from inside repository using GIN CLI
- :: Assumes no submodules
- set curdir=%~dp0
- for /f %%i in ('git -C %curdir% rev-parse --show-toplevel') do set projectdir=%%i
- cd %projectdir%
- gin sync
- :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin sync'"
- :: gin commit .
- :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin commit'"
- :: gin upload
- :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin upload'"
- :: Uncomment below to download all large files
- :: gin get-content .
- :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin get-content'"
- echo %projectdir%
- pause
|