文件上的棕色星号图标在 Eclipse 中意味着什么?

发布于 2024-08-16 07:54:28 字数 148 浏览 7 评论 0原文

我正在使用 Eclipse 的 git 插件。我的一些文件标有棕色星号。这是什么意思?在哪里可以找到有关 Eclipse 中其余 git 图标含义的文档?

替代文字

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?

alt text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

你的背包 2024-08-23 07:54:29

这意味着您已更改工作区中文件中的某些内容,但未将更改推送到主存储库。

This means that you've changed something in a file in your workspace but not pushed your changes to the master repository.

咋地 2024-08-23 07:54:29

这个问题实际上与GIT有关,所以如果不起作用,请尝试其他方法:备份您的代码,然后再次克隆项目并开始处理它。

This issue is actually related to GIT, so try other ways if nothing works: backup your code and just clone the project once again and start working on it.

两人的回忆 2024-08-23 07:54:28

此页面应该可以让您很好地了解 Eclipse 中 GIT 的图标含义

。摘要:

Icons

dirty(文件夹)——该文件夹下至少有一个文件是脏的;这意味着它在工作树中发生了既不在索引中也不在存储库中的更改。

已跟踪 - Git 存储库已知该资源。

未跟踪 - Git 存储库未知该资源。

ignored - Git 团队提供商忽略该资源。这里只进行Team->Team下的首选项设置忽略的资源和“派生”标志是相关的。不考虑 .gitignore 文件。

脏 - 资源在工作树中发生了更改,这些更改既不在索引中,也不在存储库中。

已暂存 - 资源发生更改并添加到索引中。目前,只能在资源上下文菜单上的提交对话框中添加到索引。

部分暂存 - 资源已添加到索引中的更改以及工作树中既不在索引中也不在存储库中的更改。

已添加 - 资源尚未被 Git 存储库跟踪,但已添加到 Git 存储库中。

已删除 - 资源已暂存以从 Git 存储库中删除。

冲突 - 文件存在合并冲突。

假设有效 - 资源具有“假设不变”标志。这意味着 Git 停止检查工作树文件是否有可能的修改,因此您需要手动取消设置该位以在更改工作树文件时通知 Git。可以使用菜单操作“团队->假设不变”(或在命令行上使用 git update-index --assume-unchanged)打开此设置。

This page should give you a good rundown of what the icons mean for GIT in eclipse

A quoted summary:

Icons

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).

腹黑女流氓 2024-08-23 07:54:28

我不熟悉 git,但是当在 Eclipse 中使用 svn 时,棕色方块上的白色星星意味着自上次更新以来您已对文件进行了更改。另一方面,金色圆柱体意味着您尚未进行更改,因此本地文件与存储库版本相同。所以它的意思一定和git中的意思大致相同。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文