Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k views
in Technique[技术] by (71.8m points)

vscode切换分支后,代码是没有提交的状态,但是git上已经有了

使用vscode编辑器。在git的分支上提交代码后,编辑器上的文件没有提交代码后的状态,是提交代码前的状态,但是git上已经是更新后的代码了
image.png

查看文件状态,会提示没有提交,但是git上已经有了
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

试下关闭编辑器 重新打开
我之前代码状态没更改,就是这样的。。。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...