- 在GITHUB和GITEE创建仓库
- 本地克隆仓库(两个随便一个都行)
- 更改.git文件配置 (.git/config)
- 以下以本人learn为例
##原配置文件
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://github.com/Jerrybibo/learn.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[gui]
wmstate = normal
geometry = 841x483+125+125 189 218
##更改后配置文件
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://github.com/Jerrybibo/learn.git
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "origin"]
url = https://gitee.com/jerrycyl/learn.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[gui]
wmstate = normal
geometry = 841x483+125+125 189 218
最后git push 查看两仓库