git Eclipse 中文件上的棕色星号图标是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1978553/
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
What does the brown asterisk icon on a file mean in Eclipse?
提问by Ryan Michela
I am using the git plugin for Eclipse. Some of my files are marked with a brown asterisk. What does it mean? Where can I find documentation for what the rest of the git icons mean in Eclipse?
我正在使用 Eclipse 的 git 插件。我的一些文件标有棕色星号。这是什么意思?我在哪里可以找到有关 Eclipse 中其余 git 图标含义的文档?
回答by Arch
This pageshould give you a good rundown of what the icons mean for GIT in eclipse
这个页面应该给你一个很好的概述,图标对于 eclipse 中的 GIT 意味着什么
A quoted summary:
引用摘要:
dirty (folder) - At least one file below the folder is dirty; that means that it has changes in the working tree that are neither in the index nor in the repository.
tracked - The resource is known to the Git repository.
untracked - The resource is not known to the Git repository.
ignored - The resource is ignored by the Git team provider. Here only the preference settings under Team -> Ignored Resources and the "derived" flag are relevant. The .gitignore file is not taken into account.
dirty - The resource has changes in the working tree that are neither in the index nor in the repository.
staged - The resource has changes which are added to the index. Not that adding to the index is possible at the moment only on the commit dialog on the context menu of a resource.
partially-staged - The resource has changes which are added to the index and additionally changes in the working tree that are neither in the index nor in the repository.
added - The resource is not yet tracked by but added to the Git repository.
removed - The resource is staged for removal from the Git repository.
conflict - A merge conflict exists for the file.
assume-valid - The resource has the "assume unchanged" flag. This means that Git stops checking the working tree files for possible modifications, so you need to manually unset the bit to tell Git when you change the working tree file. This setting can be switched on with the menu action Team->Assume unchanged (or on the command line with git update-index --assume-unchanged).
脏(文件夹)——文件夹下至少有一个文件是脏的;这意味着它在工作树中发生了既不在索引中也不在存储库中的更改。
已跟踪 - Git 存储库已知资源。
未跟踪 - Git 存储库不知道该资源。
忽略 - 资源被 Git 团队提供者忽略。这里只有 Team -> Ignored Resources 下的首选项设置和“派生”标志是相关的。不考虑 .gitignore 文件。
脏 - 资源在工作树中发生了变化,既不在索引中也不在存储库中。
已暂存 - 资源已添加到索引中的更改。目前仅在资源上下文菜单上的提交对话框中添加到索引是不可能的。
部分暂存 - 资源具有添加到索引中的更改以及工作树中既不在索引中也不在存储库中的其他更改。
添加 - 资源尚未被 跟踪,但已添加到 Git 存储库。
已删除 - 资源已暂存以从 Git 存储库中删除。
冲突 - 文件存在合并冲突。
假设有效 - 资源具有“假设未更改”标志。这意味着 Git 停止检查工作树文件是否有可能的修改,因此您需要手动取消设置该位以在您更改工作树文件时通知 Git。可以使用菜单操作 Team->Assume 保持不变(或在命令行上使用 git update-index --assume-unchanged)打开此设置。
回答by MatrixFrog
I'm not familiar with git, but when using svn with Eclipse, the white star on the brown square means you have made changes to the file since the last time you updated it. The gold cylinder, on the other hand, means you have not made changes so the local file is identical to the repository version. So it must mean something that is roughly equivalent to that in git.
我对 git 不熟悉,但是当在 Eclipse 中使用 svn 时,棕色方块上的白星表示自上次更新文件以来您已经对文件进行了更改。另一方面,金色圆柱表示您尚未进行更改,因此本地文件与存储库版本相同。所以它的含义一定与 git 中的大致相同。
回答by Michel Gokan
Eclipse icons list:
Eclipse 图标列表:
1- JDT icons
1- JDT 图标
2- main icons
2-主要图标
3- Eclipse user interface guideline
4- GIT 标签装饰
回答by Mike
This means that you've changed something in a file in your workspace but not pushed your changes to the master repository.
这意味着您已经更改了工作区文件中的某些内容,但并未将更改推送到主存储库。