解决git提交的错误

### 错误提示

git pull origin master

From https://github.com/treeandgrass/javaPrj_1
 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories

### 解决方式

使用

git pull origin master –allow-unrelated-histories

结果:

From https://github.com/treeandgrass/javaPrj_1
     * branch            master     -> FETCH_HEAD
    Merge made by the 'recursive' strategy.
     README.md | 2 ++
     1 file changed, 2 insertions(+)
     create mode 100644 README.md
    原文作者:treeandgrass
    原文地址: https://segmentfault.com/a/1190000009427487
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞