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.
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- Visual Studio Code, MAC OS X, OmniSharp server is
- Omnisharp in VS Code produces a lot of warnings ab
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
When you do a
git status
from your command line, it will give you a list ofmodified
anduntracked
files that currently exist on your local machine.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 areuntracked
.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.Please Note:
You will only ever see
modified
oruntracked
files highlighted in 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 adeleted
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).The 'U' means the files are 'untracked', and the 'M' means the files have been 'modified'.
You can use the commands:
git add -A
- To add all the files to the staging area.git commit -m 'message'
- To create a 'snapshot' of the files on the staging area.Hope this explains what you were trying to figure out.
A - Added (This is a new file that has been added to the repository)
M - Modified (An existing file has been changed)
D - Deleted (a file has been deleted)
U - Untracked (The file is new or has been changed but has not been added to the repository yet)
C - Conflict (There is a conflict in the file)
R - Renamed (The file has been renamed)