This commit is contained in:
t0is 2025-06-02 11:08:03 +02:00
parent 9d4d59d669
commit fc7736b89a
3 changed files with 33 additions and 0 deletions

Binary file not shown.

BIN
scripts/.DS_Store vendored

Binary file not shown.

View File

@ -0,0 +1,33 @@
@echo off
REM -------------------------------------------------------------
REM Script: update-vat-software.bat
REM Description: Navigate to %USERPROFILE%\Documents\VAT-Software
REM and update the Git remote, fetch all changes,
REM and reset to origin/master.
REM -------------------------------------------------------------
REM Change directory to the VAT-Software folder under the current user's Documents
cd /d "%USERPROFILE%\Documents\VAT-Software" || (
echo Folder "%USERPROFILE%\Documents\VAT-Software" not found.
pause
exit /b 1
)
REM -------------------------------------------------------------
REM OPTION 1: Embed credentials in the remote URL to avoid prompts.
REM Replace <YOUR_PASSWORD> with the actual password for vat_emp.
REM -------------------------------------------------------------
git remote set-url origin https://vat_emp:k0rej%24k%4015@gitea.bangus-deneb.ts.net/t0is/vat-software.git
REM If youd rather enter credentials manually, comment out the previous line and uncomment below:
REM git remote set-url origin https://gitea.bangus-deneb.ts.net/t0is/vat-software.git
REM Fetch all branches and tags from the remote
git fetch --all
REM Force-reset the local master branch to match origin/master
git reset --hard origin/master
echo.
echo Repository has been updated to origin/master.
pause