0
点赞
收藏
分享

微信扫一扫

git报错fatal: refusing to merge unrelated histories


​​welcome to my blog​​

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


举报

相关推荐

0 条评论