push github+gitee

push github+gitee 公开 已发布

如何安装动作?

适用于
分类(旧)
文本处理 文件处理
关键词



更多信息
分享时间 3天7小时前
最后更新 2天19小时前
修订版本 1
用户许可 可自己使用或修改,不可再分享
Quicker版本 1.44.22
动作大小 11.5 KB

分享到

「给包含了 .git 的文件夹,自动设置 config 中的 [remote "origin"] 字段为 push 至 github+gitee,但只从 github pull」

简介

  1. 执行之前需要右键动作 - 设置 git 用户名
  2. 选中包含了 .git 的文件夹,执行命令
  3. 自动设置 config 中的 [remote "origin"] 字段为 push 至 github+gitee,但只从 github pull。


最近更新

修订版本 更新时间 更新说明
1 2天19小时前 1.如果 config 里已经有 url,保留它的风格(ssh/https 不变)
- 从里面提取 repoName(优先使用 config 内的 repo 名)
- 拼出 Gitee 地址(只换域名/用户名,不改 repo 名)
- 如果 config 里没有 url,再 fallback 到 FolderName

2.提示框,在更新时显示: 使用 repo 名:xxx (来源:config/url or folder),方便用户确认是取的哪个来源。这个提示框还提示使用了什么git username。
0 3天7小时前

最近讨论

暂无讨论