git merge dev --allow-unrelated-histories
后面加--allow-unrelated-histories
这句命令表示将dev分支合并到当前分支,这里的两个本地分支各自追踪不同的远程库,需要加入--allow-unrelated-histories
参数才能够完成合并操作而不报错
相关文章
- 01-07git push时报错refusing to merge unrelated histories
- 01-07Git报错-refusing to merge unrelated histories
- 01-07idea提交代码时报错Git Pull Failed: refusing to merge unrelated histories
- 01-07git报错:refusing to merge unrelated histories 的解决方法
- 01-07git无法pull仓库refusing to merge unrelated histories (拒绝合并不相关仓库)
- 01-07git fatal: refusing to merge unrelated histories
- 01-07Git 报错:fatal: refusing to merge unrelated histories
- 01-07Git fatal: refusing to merge unrelated histories
- 01-07git merge fatal: refusing to merge unrelated histories解决办法
- 01-07成功解决Git:fatal: refusing to merge unrelated histories