这里的问题的关键在于:fatal: refusing to merge unrelated histories
你可能会在git pull或者git push中都有可能会遇到,这是因为两个分支没有取得关系。那么怎么解决呢?
二、解决方案
在你操作命令后面加–allow-unrelated-histories
例如
git pull origin master --allow-unrelated-histories
这里的问题的关键在于:fatal: refusing to merge unrelated histories
你可能会在git pull或者git push中都有可能会遇到,这是因为两个分支没有取得关系。那么怎么解决呢?
二、解决方案
在你操作命令后面加–allow-unrelated-histories
例如
git pull origin master --allow-unrelated-histories