美文网首页
关于git上传出现fatal: refusing to merg

关于git上传出现fatal: refusing to merg

作者: zither_ | 来源:发表于2018-08-09 17:44 被阅读0次

在github上传项目,有时候会出现fatal: refusing to merge unrelated histories错误。
1、首先在命令行git status查看有没有更新内容,如果有,先git add .git commit -m "update .. "进行提交。
2、之后在命令行输入git pull origin master --allow-unrelated-histories之后就可以正常push了。

相关文章

网友评论

      本文标题:关于git上传出现fatal: refusing to merg

      本文链接:https://www.haomeiwen.com/subject/aoucbftx.html