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

相关推荐
semantist@语校7 小时前
语校网500所里程碑:日本语言学校数据库的标准化与可追溯机制
大数据·数据库·人工智能·百度·语言模型·oracle·github
CoderJia程序员甲20 小时前
GitHub 热榜项目 - 日榜(2025-10-01)
ai·开源·github·ai编程·github热榜
紫钺-高山仰止1 天前
【Pyzmq】python 跨进程线程通信 跨平台跨服务器通信
服务器·python·github
芥子沫1 天前
GitHub 使用技巧
github·使用技巧·代码管理
2401_884810741 天前
git知识点
git
圆肖1 天前
[陇剑杯 2021]简单日志分析(问3)
前端·经验分享·github
Akshsjsjenjd1 天前
Nginx 访问控制、用户认证、HTTPS配置实操手册
nginx·https·github
小牛itbull1 天前
从 Vercel 构建失败谈 Git 大小写敏感性问题:一个容易被忽视的跨平台陷阱
git
uhakadotcom1 天前
入门教程:常用的 Python 第三方库:python-logstash
后端·面试·github
chainbees1 天前
Git账号配置 SSH 密钥
运维·git·ssh