git 错误 解决git refusing to merge unrelated histories

 

 通过查阅资料显示,GIt从版本2.9.0开始,预设行为不允许合并没有共同祖先的分支,需要加上--allow-unrelated-histories选项进行pull操作才不会出现此类错误信息

pull 的时候写

git pull origin master --allow-unrelated-histories

就行了

posted @ 2017-11-03 18:11  沙滩多啦图  阅读(152)  评论(0编辑  收藏  举报