Docs/Git/Git多远程仓库.md
2022-10-18 16:59:37 +08:00

530 B

git remote add origin https://github.com/xhupo/Docs.git
git remote set-url --add origin https://114.215.177.69:suipeng_wang/om-doc.git

配置文件会变更如下:

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = git@114.215.177.69:suipeng_wang/om-doc.git
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = https://git.xhupo.com/xhupo/Docs.git
[branch "master"]
	remote = origin
	merge = refs/heads/master