git pull U、A 和 D 标签 : Meaning?

标签 git github version-control git-pull

git pull 偶尔会给我消息如下:

screen shot of gitbash during pull attempt

我不明白“U”、“A”和“D”的标签。有人可以告诉我这些是什么意思吗?谢谢。

最佳答案

您可以在 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)

其他字母列在“What does “T” mean in “git status”?

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)

关于“Pull is not possible because you have unmerged files”错误信息,它与你在输出中看到的“U”(未 merge 文件)一致。
参见“Why does git say “Pull is not possible because you have unmerged files”?

To resolve this, you will have to resolve the merge conflicts in question, and add and commit the changes, before you can do a git pull.

关于git pull U、A 和 D 标签 : Meaning?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28668742/

相关文章:

git - 如何在开源项目中 stash 私有(private)信息?

macos - 与 Finder 集成的 Git 客户端

version-control - 跨 TFS 文件夹共享代码(例如 svn :externals)?

Git:有没有一种从一个分支 merge 到多个分支比串行执行每个分支更快的方法?

git - 从 github 的 master 中删除文件

git - octopress 第一次提交

git 无法打开 .git/FETCH_HEAD

github - 在 shinyapp.io 上部署 Shiny 的应用程序,并在私有(private)组织仓库中使用包

Git不时消失

git - 如何从github下载一个文件夹?