git checkout:这个奇怪的输出是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4949652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 10:04:17  来源:igfitidea点击:

git checkout: what does this weird output mean?

git

提问by mwt

When I checkout, I get:

当我结帐时,我得到:

me@localhost# git checkout master
D    deps/example
M    deps/example2
Switched to branch "master"

The man page doesn't mention this cryptic output. What does it mean?

手册页没有提到这个神秘的输出。这是什么意思?

回答by meagar

That's the output of git status; git is showing you that after checking out masterthere are still uncommited changes to your working copy (one modified file and one deleted file).

这是git status;的输出 git 向您显示,在检出后master,您的工作副本(一个修改的文件和一个删除的文件)仍有未提交的更改。

Check man git-status:

检查man git-status

M = modified
A = added
D = deleted
R = renamed
C = copied
U = updated but unmerged