old_sync.bat 619 B

12345678910111213141516171819202122232425
  1. :: Upload changes from inside repository using GIN CLI
  2. :: Assumes no submodules
  3. set curdir=%~dp0
  4. for /f %%i in ('git -C %curdir% rev-parse --show-toplevel') do set projectdir=%%i
  5. cd %projectdir%
  6. gin sync
  7. :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin sync'"
  8. :: gin commit .
  9. :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin commit'"
  10. :: gin upload
  11. :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin upload'"
  12. :: Uncomment below to download all large files
  13. :: gin get-content .
  14. :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin get-content'"
  15. echo %projectdir%
  16. pause