【问题标题】:How can I prevent eclipse from randomly adding .gitignore files everywhere?如何防止 eclipse 在任何地方随机添加 .gitignore 文件?
【发布时间】:2022-01-10 20:31:35
【问题描述】:

eclipse 不断将 .gitignore 文件添加到我的项目中,其中包含以下随机文件列表:

Thumbs.db
.DS_Store
.gradle
build/
out/
.idea
*.iml
*.ipr
*.iws
.project
.settings
.classpath
/bin/

我知道我希望哪些文件不受源代码控制。我不需要我的 IDE 来尝试第二次猜测我。

eclipse 中阻止它创建 .gitignore 文件的配置选项在哪里。

【问题讨论】:

    标签: eclipse gitignore egit


    【解决方案1】:

    我之前(2014)提到过设置“Window → Preferences → Team → Git → Projects → Automatically ignore derived resources

    看看你的情况是否仍然会发生这种情况(我想是更新的 Eclipse 版本)

    这在Thomas Trocha的“Eclipse: Prevent creation of .gitignore for generated code”中也有描述(最近是在 2020 年)

    【讨论】:

      猜你喜欢
      • 2021-12-17
      • 2021-11-03
      • 1970-01-01
      • 2012-07-01
      • 1970-01-01
      • 2017-06-02
      • 2017-12-25
      • 1970-01-01
      • 2014-04-30
      相关资源
      最近更新 更多