在git上新建了项目,但是在最后push的时候就一直报这个错:“error: failed to push some refs to 'https......”,不知道怎么解决了,弄了好久。
不知道是不是我新建的时候勾选了“使用自述文件初始化仓库”的原因。
推送之前,先拉取一下
git pull github master --allow-unrelated-histories