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