最后找到解决办法如下: 1. 先删除远程git仓库 git remote rm origin 2、再添加远程 Git 仓库 git remote add origin git@github.com:Diana-Doris/typescript-project.git