更新时间:2024-07-09 GMT+08:00
分享

fatal: refusing to merge unrelated histories

问题现象

使用git pull命令时,提示“refusing to merge unrelated histories”

原因分析

云端与本地的仓库不同,例如:不同的分支、或不同的仓库等。

处理方法

使用命令git pull origin master --allow-unrelated-histories进行强制合并。

分享:

使用CodeArts Repo时,常见报错解决方法 所有常见问题

more