git报错fatal: refusing to merge unrelated histories

阅读 94

2023-01-18


​​welcome to my blog​​

git拉取远程仓库的内容时报错fatal: refusing to merge unrelated histories
因为本地仓库和远程仓库不相关, 想要拉取更新需要忽略各自的历史, 拉取时加上参数​​​--allow-unrelated-histories​​​即可
完整的拉取命令
​​​git pull origin master --allow-unrelated-histories​


精彩评论(0)

0 0 举报