原因分析 连接新、空远程仓库时连接后没有克隆,直接提交 解决方案: git clone https://github.com/xxxxxx/interfaceNode.git<仓库名> git add README.md git commit -m "first commit" git remote add origin https://github.com/xxxxx/interfaceNode.git git push -u origin master