refusing to merge unrelated histories
时间: 2023-08-26 07:15:19 浏览: 179
底部todos.zip
回答: "refusing to merge unrelated histories"错误是由于两个分支拥有不相关的提交历史而导致的。这个错误表示Git拒绝合并这些不相关的历史。如果你确实需要合并这些不相关的历史,可以在执行merge命令时添加 --allow-unrelated-histories 参数来允许合并不相关的历史。这样就可以解决这个问题了。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [git merge 合并分支时遇上refusing to merge unrelated histories的解决方案](https://blog.csdn.net/quhan97/article/details/122726787)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* *3* [refusing to merge unrelated histories的解决方案(本地/远程)综合](https://blog.csdn.net/junruitian/article/details/88361895)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文