20260507213409
This commit is contained in:
1 parent
3070eac71b
commit
4c7f516a03
204 files changed
+3623
No files matched your search
@@ -0,0 +1,37 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
for /f %%i in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMddHHmmss"') do set COMMIT_MSG=%%i
|
||||
|
||||
echo Current directory:
|
||||
cd
|
||||
echo.
|
||||
echo Commit message: %COMMIT_MSG%
|
||||
echo.
|
||||
|
||||
echo Running: git add .
|
||||
git add .
|
||||
if errorlevel 1 goto error
|
||||
|
||||
echo.
|
||||
echo Running: git commit -m "%COMMIT_MSG%"
|
||||
git commit -m "%COMMIT_MSG%"
|
||||
if errorlevel 1 goto error
|
||||
|
||||
echo.
|
||||
echo Running: git push origin master
|
||||
git push 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
|
||||
Reference in new issue
Block a user