记录一个用了很久的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两个代码仓库了

相关推荐
为思念酝酿的痛12 分钟前
Git基本操作
git·github
芯门41 分钟前
GitHub「用好 AI」工具生态全景:2409 个仓库 Star 排行调研(2026-11)
人工智能·github
2分钟速写快排10 小时前
孔乙己的茴字有多少种写法?|AI 对话实时通信的三种实现
前端·javascript·github
71777712 小时前
国产研发中台怎么选:以 Gitee 为锚点的技术决策参考
gitee
wangruofeng14 小时前
同一行代码,百种渲染:Asuka、React Native 与 Flutter 跨平台渲染机制深度拆解
前端·github
杨凯凡15 小时前
IT日报|2026-11-13:GitHub 大规模凭据攻击、Signal 形式化验证、Claude 新模型与 AI 安全诉讼
人工智能·安全·github
liuzheng662118 小时前
我给 Agent 测试注入了 72 种谎话,它抓住了 44 种
github
71777720 小时前
支持混合云的 DevOps 平台有哪些:Gitee、Azure DevOps、GitLab、Jenkins、JFrog 横向对比
gitee·azure·devops
feasibility.1 天前
一物降一物?AI逆向没有终局:REA拆App,BLA设套,LASIK清场
人工智能·爬虫·github·逆向·skill·rea
wno7041 天前
常用的Git命令清单
大数据·git·elasticsearch