git pull 冲突拉取不到新的代码
git config –global user.email
报错:fatal: refusing to merge unrelated histories
解决办法:
1、(未能解决)
git reset --hard FETCH_HEAD
git pull
2、(成功解决)
两个分支是两个不同的版本,具有不同的提交历史:
git pull origin version2 –allow-unrelated-histories
拓展阅读(点评/知识):
参考:
https://www.jianshu.com/p/3327e5aed8d5?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation
本文标题: | 解决git pull 冲突拉取不到新的代码 |
本文链接: (转载请附上本文链接) | https://vulsee.com/archives/vulsee_2021/0421_14353.html |