方法一:通過(guò)命令行修改遠(yuǎn)程地址
> cd json
> git remote set-url origin https://gitee.com/jouypub/json.git
方法二:先刪除原有倉(cāng)庫(kù)地址,然后添加新地址
> cd json
> git remote rm origin
> git remote add origin https://gitee.com/jouypub/json.git
方法三:修改配置文件
> cd json/.git
> vim config
[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
precomposeunicode = true
[remote "origin"]
# 修改成新的倉(cāng)庫(kù)地址
url = https://gitee.com/jouypub/json.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master