24 lines
256 B
Batchfile
24 lines
256 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
cd /d "%~dp0"
|
|
|
|
echo Current directory:
|
|
cd
|
|
echo.
|
|
|
|
echo Running: git pull origin master
|
|
git pull origin master
|
|
if errorlevel 1 goto error
|
|
|
|
echo.
|
|
echo Done.
|
|
pause
|
|
exit /b 0
|
|
|
|
:error
|
|
echo.
|
|
echo Failed. See the message above.
|
|
pause
|
|
exit /b 1
|