fatal: refusing to merge unrelated histories解决

fatal: refusing to merge unrelated histories 解决

Git :fatal: refusing to merge unrelated histories 解决

今天本地创建了一个仓库(有 README),把本地仓库和Github上关联以后,发现 git pull,git feach 提醒 fatal: refusing to merge unrelated histories

上网查到原因是两个分支是两个不同的版本,具有不同的提交历史

加一句

$git pull origin master –allow-unrelated-histories


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!