git 报错:fatal: refusing to merge unrelated histories?

简介: git 报错:fatal: refusing to merge unrelated histories?

报错


git pull 报错如下:

0cecaa4f4ca54d7da66e6879a5a9f18e.png


解决


原因:两个分支是两个不同的版本,具有不同的提交历史,可以使用 --allow-unrelated-histories 可以允许不相关历史提,强制合并

git pull origin master --allow-unrelated-histories
目录
相关文章
|
1天前
|
机器学习/深度学习 Shell 开发工具
Python使用管道执行git命令报错|4-7
Python使用管道执行git命令报错|4-7
|
1天前
|
Shell 网络安全 开发工具
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
|
1天前
|
存储 Shell 开发工具
8-8|windows上Git报错
8-8|windows上Git报错
|
1月前
|
开发工具 git 开发者
|
1月前
|
开发工具 git
【Azure App Service】App Service设置访问限制后,使用git clone代码库出现403报错
【Azure App Service】App Service设置访问限制后,使用git clone代码库出现403报错
|
1月前
|
开发工具 git
成功解决:fatal: detected dubious ownership in repository at ‘E:/workspace/CSMarket‘。如何使用git工具通过命令行的形式
这篇文章分享了作者在使用Git工具初始化本地仓库时遇到的权限问题,提供了通过命令行解决Git仓库权限问题的方案,并介绍了如何使用Git命令行初始化项目、添加文件、提交以及关联远程仓库的步骤。
成功解决:fatal: detected dubious ownership in repository at ‘E:/workspace/CSMarket‘。如何使用git工具通过命令行的形式
|
1月前
|
网络安全 开发工具 数据安全/隐私保护
Win10使用Git克隆项目出现fatal: Authentication failed for异常
Windows 10系统中使用Git克隆项目时出现"fatal: Authentication failed for"异常的解决方法,主要是通过修改凭据管理器中的Git凭据密码来解决因密码过期导致的身份验证失败问题。
37 0
Win10使用Git克隆项目出现fatal: Authentication failed for异常
|
1月前
|
开发工具 Android开发 git
解决Idea报错出现Git is not installed
解决Idea报错出现Git is not installed
212 2
|
1月前
|
网络安全 开发工具 数据安全/隐私保护
Git——报错总结
Git——报错总结
32 1
|
开发工具 git
git出现报错:src refspec master does not match any
git出现报错:src refspec master does not match any
887 0