在git上新建一个项目,勾选了使用自述文件初始化仓库,然后按照步骤上传项目最后push的时候一直报错(error: failed to push some refs to 'https:)?

在git上新建了项目,但是在最后push的时候就一直报这个错:“error: failed to push some refs to 'https......”,不知道怎么解决了,弄了好久。

img

不知道是不是我新建的时候勾选了“使用自述文件初始化仓库”的原因。

img

推送之前,先拉取一下

git pull github master --allow-unrelated-histories