怎样能把一个git项目同时传到gitee和github上,一次提交,gitee和github都更新

1、配置.git的config文件

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = https://gitee.com/zhong_dawei/crm.git
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = https://github.com/ZDW6060/crm.git
[branch "master"]
	remote = origin
	merge = refs/heads/master

猜你喜欢

转载自blog.csdn.net/qq_44752641/article/details/114771055