@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 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 you’d 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