Skip to content

Commit 1e2f12f

Browse files
committed
Create git_push.bat
1 parent 1efc3a3 commit 1e2f12f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

git_push.bat

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@echo off
2+
echo Pushing to default remote repository...
3+
git push
4+
if %errorlevel% neq 0 (
5+
echo Failed to push to default remote repository.
6+
exit /b %errorlevel%
7+
)
8+
9+
echo Pushing to upstream remote on 'main' branch...
10+
git push upstream main
11+
if %errorlevel% neq 0 (
12+
echo Failed to push to upstream remote on 'main' branch.
13+
exit /b %errorlevel%
14+
)
15+
16+
echo Pushing to 'upstream_gitcode' remote on 'main' branch...
17+
git push upstream_gitcode main
18+
if %errorlevel% neq 0 (
19+
echo Failed to push to 'upstream_gitcode' remote on 'main' branch.
20+
exit /b %errorlevel%
21+
)
22+
23+
echo All pushes completed successfully.
24+
pause

0 commit comments

Comments
 (0)