git fatal: refusing to merge unrelated histories
来源:互联网 发布:猪八戒的前世今生 知乎 编辑:程序博客网 时间:2024/05/29 15:45
今天在拉取远程仓库上的项目时出现了这个个问题
C:\Users\Administrator\Source\Repos\NewRepo>git pull https://github.com/houchuanhao/ACM.git masterFrom https://github.com/houchuanhao/ACM
错误提示如下
* branch master -> FETCH_HEADfatal: refusing to merge unrelated histories
原因是在本地的文件夹为NewRepo,与远程仓库名称不一样
解决方案:
pull时添加 –allow-unrelated-histories
C:\Users\Administrator\Source\Repos\NewRepo>git pull origin master --allow-unrelated-historiesFrom github.com:houchuanhao/ACM * branch master -> FETCH_HEADMerge made by the 'recursive' strategy. README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md
0 0
- git fatal: refusing to merge unrelated histories
- git pull 失败 ,提示:fatal: refusing to merge unrelated histories
- git pull 失败 ,提示:fatal: refusing to merge unrelated histories
- git pull 失败 ,提示:fatal: refusing to merge unrelated histories
- Git Pull Failed: fatal: refusing to merge unrelated histories
- fatal: refusing to merge unrelated histories(git)
- git 报这个错 fatal: refusing to merge unrelated histories
- fatal: refusing to merge unrelated histories 解决方案
- fatal: refusing to merge unrelated histories
- fatal: refusing to merge unrelated histories
- git-bug-“refusing to merge unrelated histories”
- git : refusing to merge unrelated histories
- git pull:refusing to merge unrelated histories
- refusing to merge unrelated histories
- refusing to merge unrelated histories
- git常见问题之git pull origin master时fatal: refusing to merge unrelated histories
- fatal: refusing to merge unrelated histories的解决方案
- 如何去解决fatal: refusing to merge unrelated histories
- 不同的verilog代码风格看RTL视图之二
- 粉丝福音,漫威《银河护卫队2》将入坑VR
- Student Attendance Record I问题及解法
- 微信开发之事件推送与被动回复
- Linux虚拟地址空间布局
- git fatal: refusing to merge unrelated histories
- android 广播详解与实例(Broad Receiver)
- npm 常用命令详解
- 标准IO流cin与cout
- 38. Count and Say
- 常见开源加密算法库
- docker命令
- Android反编译
- 股票数据的获取分析