EGit and Eclipse modifies .gitignore file but it should not

后端 未结 1 1943
栀梦
栀梦 2020-12-24 00:52

I\'m using Eclipse and EGit, but Eclipse modifies my .gitignore file without me asking to do so. As soon as I open Eclipse the .gitignore file is modified.

相关标签:
1条回答
  • 2020-12-24 01:11

    By default, EGit automatically adds resources marked as "Derived" to .gitignore. A typical example is the bin folder in a Java project containing the compiled classes.

    You can disable this by going to Window > Preferences > Team > Git > Projects and deselect "Automatically ignore derived resources by adding them to .gitignore".

    There was also a bug in EGit where it added entries when the Eclipse model and the filesystem were out-of-sync, see bug 421610 (fixed for EGit 3.5).

    0 讨论(0)
提交回复
热议问题