因为只是git push没有指明哪个仓库。所以就报错了。指定仓库之后就成功了! 如图: 参考: https://blog.csdn.net/weixin_44514665/article/details/91956785