1 Star 1 Fork 1

hboot/rsup-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
push_to_remote.sh 777 Bytes
一键复制 编辑 原始数据 按行查看 历史
hboot 提交于 2025-01-05 14:46 +08:00 . chore: 手动触发工作流
#!/bin/bash
# 远程仓库分支名称
remote_github="github"
remote_gitee="origin"
branch="master"
# 是否需要添加所有更改
read -p "Do you want to add all changes and commit? [y/n]: " is_add
# 根据输入确认是否默认提交
if [ "$is_add" == "y" ] || [ "$is_add" == "Y" ]; then
echo "Add all changes and commit"
git add .
# 获取提交信息
read -p "Please enter the commit information: " msg
# 提交所有更改
echo "Commit all changes with message: $msg"
git commit -m "$msg"
else
echo "Skip add all changes and commit"
fi
# 推送到gitee
echo "Push to gitee"
git push -u $remote_gitee $branch
# 推送到github
echo "Push to github"
git push -u $remote_github $branch:main --tags
echo "Push to github and gitee successfully"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hboot/rsup-web.git
git@gitee.com:hboot/rsup-web.git
hboot
rsup-web
rsup-web
master

搜索帮助