Git解决 fatal: refusing to merge unrelated histories

在你的操作命令后面加 --allow-unrelated-histories

例如:

 git merge master --allow-unrelated-histories
如果你是git pull或者git push报fatal: refusing to merge unrelated histories

同理:

git pull origin master --allow-unrelated-histories / git pull --allow-unrelated-histories
 

你可能感兴趣的:(java,git)