赞
踩
出现这个错误的原因:本地初始化的项目 与 github 版本不一致, 导致无法提交 解决办法:在pull 时候, 添加–allow-unrelated-histories参数。
github
pull
–allow-unrelated-histories
git pull origin master --allow-unrelated-histories