三种方法: 命令直接修改 git remote set-url origin [url] 先删除老的远程仓库地址然后添加新的远程仓库地址 git remote rm origin git remote add origin [url] 直接修改config文件