17 lines
483 B
Batchfile
17 lines
483 B
Batchfile
:: Attempt to locate Git Bash in common locations
|
|
set "GIT_BASH1=C:\Program Files\Git\bin\bash.exe"
|
|
set "GIT_BASH2=%USERPROFILE%\AppData\Local\Programs\Git\bin\bash.exe"
|
|
|
|
if exist "%GIT_BASH1%" (
|
|
set "BASH_EXE=%GIT_BASH1%"
|
|
) else if exist "%GIT_BASH2%" (
|
|
set "BASH_EXE=%GIT_BASH2%"
|
|
) else (
|
|
echo Git Bash not found. Please install Git for Windows and try again.
|
|
exit /b 1
|
|
)
|
|
|
|
"%BASH_EXE%" -c "git svn rebase"
|
|
"%BASH_EXE%" -c "git pull"
|
|
"%BASH_EXE%" -c "git push"
|
|
pause |