git在pull仓库时出现refusing to merge unrelated histories

来源:互联网 发布:什么是数据时代 编辑:程序博客网 时间:2024/06/05 20:12

我是先在本地创建了仓库,写了一些东西,然后在github上创建仓库,再把本地的文件上传进去。在pull时,报错为refusing to merge unrelated histories,因为是两个不同的项目,要合并的话,需要在pull命令后面加上--allow-unrelated-histories

完整的命令git pull origin master --allow-unrelated-histories

阅读全文
0 0
原创粉丝点击