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

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应该也能更新远程分支列表

猜你喜欢

转载自blog.csdn.net/weixin_43915401/article/details/123800025
今日推荐