1、先删除远程 Git 仓库 git remote rm origin 2、再添加远程 Git 仓库 git remote add origin https://github.com/LiHaoran0321/20175318_MyJavaProgramming.git 如果以上方法仍然没有效果,那就手动修改gitconfig文件的内容 vi .git/config 把 [remote “origin”] 那一行删掉即可。
git remote rm origin
git remote add origin https://github.com/LiHaoran0321/20175318_MyJavaProgramming.git
vi .git/config