fatal: refusing to merge unrelated histories
报错原因
本地文件git pull时报错:fatal: refusing to merge unrelated histories,一般本地文件README.md与远程仓库分支初始化文件冲突,有多个提交历史,设置允许多个历史提交合并。
解决方法:git pull origin master --allow-unrelated-histories
git pull报错no tracking
There is no tracking information for the current branch
本地文件git pull时报错:There is no tracking information for the current branch,当前分支没有添加默认跟踪分支信息,
解决方法:git pull origin master -u 设置master,也可以是其他branch
版权声明:
作者:wuhou123
链接:https://wuhou.fun/36.html
来源:前端网
文章版权归作者所有,未经允许请勿转载。

共有 0 条评论