@echo off
setlocal
git checkout main
if errorlevel 1 exit /b 1
git fetch -ap upstream
git fetch -ap
git rebase upstream/main
git push