git出现这个问题是因为已经有连接的远程仓库了。 解决方法: 1、先删除远程 Git 仓库 $ git remote rm origin 2、再添加远程 Git 仓库 git remote add origin "远程仓库地址" 这样就可以了。