2 Star 13 Fork 4

General/GeneralUpdate-Samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
git_push.bat 751 Bytes
一键复制 编辑 原始数据 按行查看 历史
Juster Zhu 提交于 6个月前 . update push bat
@echo off
git remote -v
set /p commitmessage=Git commit message:
git add .
git commit -m "%commitMessage%"
echo Pushing to default remote repository...
git push
if %errorlevel% neq 0 (
echo Failed to push to default remote repository.
pause
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.
pause
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.
pause
exit /b %errorlevel%
)
echo All pushes completed successfully.
pause
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/GeneralLibrary/GeneralUpdate-Samples.git
git@gitee.com:GeneralLibrary/GeneralUpdate-Samples.git
GeneralLibrary
GeneralUpdate-Samples
GeneralUpdate-Samples
main

搜索帮助