一:删除原始的远程仓库链接
- 首先,查看当前的远程仓库链接:
git remote -v
- 你会看到类似如下的输出:
origin https://github.com/othersusername/others-project.git (fetch)
origin https://github.com/othersusername/others-project.git (push)
- 删除原始远程仓库链接:
git remote remove origin
假如出现:

不返回任何值,就是清除成功。
二: