首先使用 git remote -v 来查看当前仓库关联的远端地址 然后使用 git remote set-url origin <git>, 来更新本地仓库关联的远端代码 本栏目推荐文章linux 安装最新版本gitgit bash报错fatal: detected dubious ownership in repository at的解决方法我开源了一个 Go 学习仓库git commit规范markdown图片地址批量下载到本地Git提交规范如何把已有项目上传到git一段shell代码可用于git部署代码到服务器的操作openEuler欧拉设置git pull免密Linux:IP地址设置