Updated shell scripts again

This commit is contained in:
raccoon
2026-07-25 02:21:16 +05:00
parent 50947a0def
commit d0fac4ebfb
4 changed files with 26 additions and 7 deletions

View File

@@ -11,15 +11,24 @@ IF NOT DEFINED upstream (
GOTO die
)
git fetch --all || GOTO die
ECHO.
ECHO Going to reset current branch to: %upstream%
ECHO *** WARNING: All local changes and commits will be lost!
ECHO.
ECHO *** WARNING: These local commits will be lost:
git log "%upstream%..HEAD" --oneline
ECHO.
ECHO *** WARNING: These local files will be reset:
git diff "HEAD..%upstream%" --name-only
ECHO.
CHOICE /M "Execute"
IF %ERRORLEVEL% NEQ 1 (
ECHO Aborting reset...
) ELSE (
git fetch --all || GOTO die
git reset --hard "%upstream%" || GOTO die
ECHO Done.
)