当前位置:   article > 正文

vscode 拉取代码失败_vscode无法拉取最新git分支代码

vscode无法拉取最新git分支代码

在推拉代码中,vscode 突然报错,显示拉取失败,

git中pull 代码提示Please enter a commit message to explain why this merge is necessary.

Please enter a commit message to explain why this merge is necessary.

请输入提交消息来解释为什么这种合并是必要的

git 在pull或者合并分支的时候有时会遇到这个界面。可以不管(直接下面3,4步),如果要输入解释的话就需要:

1.按键盘字母 i 进入insert模式

2.修改最上面那行黄色合并信息,可以不修改

3.按键盘左上角"Esc"

4.输入":wq",注意是冒号+wq,按回车键即可

 

打开vscode  log发现有以下提示

vscode v7.0.3.release -> v7.0.3.release (would clobber existing tag)

也就是说本地和拉取标签重复;

查看本地 tag :

git tag -l

删除本地 tag :

git tag -d xxx

再次拉取,成功

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

闽ICP备14008679号