转载自:
https://blog.csdn.net/qq_29180565/article/details/89188440
https://blog.csdn.net/jinweilin/article/details/78504977
三种方法:
1、 命令直接修改
git remote set-url origin [url]
2、先删除老的远程仓库地址然后添加新的远程仓库地址
git remote rm origin
git remote add origin [url]
3、直接修改config
文件
进入.git
vim config
[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
precomposeunicode = true
[remote "origin"]
url = http://192.168.100.235:9797/shimanqiang/assistant.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
修改[remote “origin”]
下面的url即可