记录一个用了很久的git提交到github和gitee比较方便的方法

在当前git init后,在隐藏的git文件夹中找到config文件

复制代码
[user]
	name = thels
[remote "github"]
	url = your github repository url
	fetch = +refs/heads/*:refs/remotes/origin/*
[remote "gitee"]
	url = your gitee repository url
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

键入以上内容

之后git add、gitcommit后,就可以通过git push gitee master和git push github master两个语句分别快速推送到github和gitee两个代码仓库了

相关推荐
ianzh10 小时前
workbuddy-to-dsh使用教程
github
YahirQ10 小时前
技术博客一键多发实战:基于 GitHub Actions 与双引擎的自动化发布流水线
github
恒拓高科WorkPlus12 小时前
企业怎样选择IM即时通讯平台?私有化部署还是SaaS更适合?
网络·github
Maynor在掘金13 小时前
只用 1 张随手拍,在 Claude Code 里做出 15 秒抖音带货视频(配音 + 字幕花字 + BGM,本地出片)
github
littlex15 小时前
复盘分享:「高性价比人生指南」衍生网站,一周 8k+ 用户
github
u13013016 小时前
GitHub 热榜项目:周榜(2026-10-04)
人工智能·github
挖掘狂人16 小时前
Git 从 0 到 1:用一个小项目走完 add / commit / reset / merge / rebase / push
git·后端·github
miofly17 小时前
macOS 本地 AI 搜索工具 SCM 发布 0.2.4 版本,支持多模型照片视频检索
开源·github
codigger17 小时前
Git 三区域模型:把 add、commit、reset、merge 一次讲透
git·github·编程·编程语言
高频因子挖掘机17 小时前
行情监控脚本重启后,怎样快速恢复而不重复拉取数据?
后端·github·api