简体   繁体   English

gitignore文件是否在我的项目中自动创建?

[英]Are gitignore files being automatically created in my project?

I have been trying to manage the local copy of the project I am working on using EGit. 我一直在尝试管理我正在使用EGit的项目的本地副本。

I make a pull once there is a push from the other guys. 一旦有其他人的推动,我就会拉一下。 However, there are files that show that I have uncommitted changes in my local repository, but I haven't made any change. 但是,有些文件显示我在本地存储库中有未提交的更改,但我没有进行任何更改。 I try to resolve these by manually identifying these changes and discover that they are from gitignore files, which I didn't create myself (the files also show errors occasionally). 我尝试通过手动识别这些更改并发现它们来自gitignore文件来解决这些问题,我没有自己创建(文件偶尔也会显示错误)。

Is it possible that the gitignore files are being auto-created? 是否有可能自动创建gitignore文件? How can I maintain a synced local repo state? 如何维持同步的本地回购状态? I am using Eclipse Kepler. 我正在使用Eclipse Kepler。

It is possible that the settings "Automatically ignore derived resources" triggers the generation/modification of .gitignore . “自动忽略派生资源”设置可能会触发.gitignore的生成/修改。
This is a consequence of bug 297674 , adding that feature in EGit 2.3 (Q2 2013). 这是错误297674的结果,在EGit 2.3(2013年第二季度)中添加了该功能。

See the EGit tutorial : 参见EGit教程

You can also configure Eclipse to automatically ignore derived resources, eg class files via the Window → Preferences → Team → Git → Projects → Automatically ignore derived resources .. setting. 您还可以将Eclipse配置为自动忽略派生资源,例如通过Window → Preferences → Team → Git → Projects → Automatically ignore derived resources ..设置的类文件。

sir, why it is created in bin folder instead of the top folder of the source code? 先生,为什么它是在bin文件夹而不是源代码的顶层文件夹中创建的? does it work in bin folder for whole source code ? 它在bin文件夹中是否适用于整个源代码? or I create another one in the top folder. 或者我在顶部文件夹中创建另一个。

anti nova man 反新星人

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM