更改不会显示在未暂存的更改中 [英] Changes don't appear in Unstaged changes

查看:60
本文介绍了更改不会显示在未暂存的更改中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Java项目有问题.

I've got a problem with my java project.

我已经从bitbucket导入了项目,效果很好.

I have imported the project from bitbucket, it works great.

但是,当我创建一个新类时,它不会出现在未标记的更改中.

But, when I create a new class, It doesn't appear in the Unstagged changes.

我自己进行搜索,结果发现:

I did search by myself, and I found that :

所以我的课是一个被忽略的资源,我希望它不会被忽略.

So my class is a ignored ressource, I want it to be not ignored.

推荐答案

右键单击文件并导航到Team => Add.问号将变成加号,Git将跟踪该文件,但尚未提交.现在,文件的所有父文件夹都应带有一个看起来像星号的符号,表示已暂存".在下一次提交中,文件将被添加到存储库中,加号将变成存储库图标.文件的所有父项(程序包/项目…)的存储库图标将变为暂存的图标.如果您打开显示未跟踪的文件"选项,EGit还允许选择要在提交对话框中添加的未跟踪的文件.在这种情况下,它们将被同时添加和提交.

Right click on file and navigate to Team => Add. The question mark will turn into a plus symbol and the file will be tracked by Git, but it is not yet committed. All of the file’s parent folders should now have a symbol that looks like an asterisk indicating that it is ‘staged’. In the next commit, the file will be added to the repository and the plus symbol will turn into a repository icon. The repository icons of all the file’s parents (packages/project…) will turn into staged icons. EGit also allows selecting untracked files to be added in the commit dialog if you turn on the option "Show untracked files". In this case, they will be added and committed at the same time.

这篇关于更改不会显示在未暂存的更改中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆