采纳
git remote set-url origin url
git remote rm origin git remote add origin url
每个仓库在初始化时,都会有一个 .git 的隐藏目录,修改其中的 config 文件中的 url
git remote -v