git pull U, A和D标签:意思是什么?

11

有时候,git pull 会给我以下信息:

在pull尝试期间的gitbash屏幕截图

我不理解 "U"、"A" 和 "D" 的标签是什么意思。请问有人可以告诉我这些标签代表什么吗?谢谢。

1个回答

15

你可以在 man git diff-files 中详细了解这些字母:

A: addition of a file
D: deletion of a file
U: file is unmerged (you must complete the merge before it can be committed)

其他字母在"Git状态中的“T”是什么意思?"中列出。

C: copy of a file into a new one
D: deletion of a file
M: modification of the contents or mode of a file
R: renaming of a file
T: change in the type of the file
X: "unknown" change type (most probably a bug, please report it)

关于“因为您有未合并的文件,所以无法拉取”的错误信息,它与输出中看到的“U”(未合并的文件)一致。
请参见“为什么git会说“因为您有未合并的文件,所以无法拉取”?

要解决此问题,您需要解决相关的合并冲突,并添加和提交更改后才能执行git pull


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接