当前位置:   article > 正文

git 拉取分支失败,fatal: ‘origin/xxx‘ is not a commit and a branch ‘xxx‘ cannot be created from it_git fatal head is not a commit

git fatal head is not a commit
1 问题

在这里插入图片描述

2 原因

没有更新远程分支列表,找不到release_1.9.0分支

2.1 git branch -r查看远程分支


可以看到列表里没有release_1.9.0

3 更新远程分支列表

3.1 git remote update origin --prunegit remote update origin --prune
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
3.2 git pull应该也能更新远程分支列表

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/621447
推荐阅读
相关标签
  

闽ICP备14008679号