方式一:直接修改
git remote set-url origin [url]
方式二:先删除旧的远程仓库地址,再添加新地址
git remote rm origin
git remote add origin [url]
方式三:修改config文件
进入 .git 文件
修改 [remote “origin”] 下面的url
[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