Skip to content

Commit

Permalink
Create git_push.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
JusterZhu committed Jan 6, 2025
1 parent 1efc3a3 commit 1e2f12f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions git_push.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off
echo Pushing to default remote repository...
git push
if %errorlevel% neq 0 (
echo Failed to push to default remote repository.
exit /b %errorlevel%
)

echo Pushing to upstream remote on 'main' branch...
git push upstream main
if %errorlevel% neq 0 (
echo Failed to push to upstream remote on 'main' branch.
exit /b %errorlevel%
)

echo Pushing to 'upstream_gitcode' remote on 'main' branch...
git push upstream_gitcode main
if %errorlevel% neq 0 (
echo Failed to push to 'upstream_gitcode' remote on 'main' branch.
exit /b %errorlevel%
)

echo All pushes completed successfully.
pause

0 comments on commit 1e2f12f

Please sign in to comment.