其他分享
首页 > 其他分享> > git fatal: 拒绝合并无关的历史的错误解决

git fatal: 拒绝合并无关的历史的错误解决

作者:互联网

git fatal: 拒绝合并无关的历史的错误解决

本地初始化的项目 与 github 版本不一致, 导致无法提交

$ git pull origin master
来自 https://github.com/itaken/python-login-demo

在pull 时候, 添加–allow-unrelated-histories参数 即可.

$ git pull origin master --allow-unrelated-histories
来自 https://github.com/itaken/python-login-demo

标签:origin,pull,git,无关,github,master,fatal
来源: https://blog.csdn.net/qq_43744723/article/details/120432066