1.首先删除本地git远程地址 git remote rm origin 2.添加新的git远程地址 git remote add origin 远程仓库地址 3.刷新git分支 git fetch 最后就好了