• 说明

    说明

    有时在pull或merge时会出现下述错误:

    1. fatal: refusing to merge unrelated histories

    解决办法:

    1. git merge origin/master --allow-unrelated-histories

    结果如下:

    1. $ git merge origin/master --allow-unrelated-histories
    2. Already up to date!
    3. Merge made by the 'recursive' strategy.

    只需要在命令的最后面添加—allow-unrelated-histories,这句话是告诉Git允许不相关历史合并。