Pycharm pull 报错“Pull Failed: refusing to merge unrelated histories”

分析:

  1. 在github已将建立仓库
  2. pycharm clone到本地
  3. pycharm pull

在第3步报错 “Pull Failed: refusing to merge unrelated histories”、

很多答案都是告诉执行命令
git pull origin master --allow-unrelated-histories

试了好几遍还是报错

最后发现在哪里输入的命令很重要

  1. 进入clone 文件夹目录,右键选中git bash
  2. 再输入命令 github上的内容就拉取成功了

原文地址:https://www.cnblogs.com/luoditao/p/14760569.html