Visual Studio Code中的U和M文件标记是什么? [英] What are the U and M file markers in Visual Studio Code?

查看:1203
本文介绍了Visual Studio Code中的U和M文件标记是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图像中的U和M是什么意思?我正在使用Visual Studio Code和Git.我在Internet上进行了一些搜索,但是找不到任何内容.

What do U and M mean in the image? I am using Visual Studio Code and Git. I did some search on the Internet, but I could not find anything on this.

推荐答案

从命令行执行git status时,它将为您提供本地上当前存在的modifieduntracked文件的列表机器.

When you do a git status from your command line, it will give you a list of modified and untracked files that currently exist on your local machine.

在这种情况下, M U 只是Visual Studio Code与Git同步并标识(在UI中很好,我可能会添加)哪些文件已经modified以及哪些文件是untracked.

The M and U in this case is just Visual Studio Code syncing up with Git and identifying (very nicely in the UI, I might add) which files have been modified and which files are untracked.

这是浏览工作区并准确查看当前git status是什么的好方法,而无需在命令行中输入命令.

It\'s just a nice, clear and easy way to look through your workspace and see exactly what your current git status is without having to enter the command on the command line.

请注意:

您只会看到在Visual Studio代码中突出显示的modifieduntracked文件.

You will only ever see modified or untracked files highlighted in Visual Studio Code.

例如,如果删除一个文件,该文件只会从您的工作空间中消失,但是,从命令行执行该git status时,该文件的状态仍为deleted.但是,在Visual Studio Code中您将看不到任何其他可视化表示形式(该文件将不再在您的工作空间中列出).

If you delete a file, for example, it will just disappear from your workspace, however your git status, when executed from the command line, will still include a deleted status for that file. But you won\'t see any additional visual representation for this in Visual Studio Code (the file will just not be listed in your workspace any more).

这篇关于Visual Studio Code中的U和M文件标记是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆