代码之家  ›  专栏  ›  技术社区  ›  Colin Harrington

如何使intellij idea 8.1.x忽略.gitignore中的项

  •  2
  • Colin Harrington  · 技术社区  · 15 年前

    我喜欢Intellij IDEA 8.1.3中的Git支持。我用它在Linux上做了一些Grails开发。

    这个想法似乎忽略了其他文件 .gitignore 喜欢 /tests/reports 等等,但不忽略stacktrace.log。换句话说,stacktrace.log的更改显示在“更改”窗口中

    .gitignore文件的内容是:

    *.iws
    .DS_Store
    /out/**
    
    # web application files that are overwritten by "grails upgrade"
    #  cf. GRAILS_HOME/scripts/Upgrade.groovy, target( upgrade )
    /web-app/WEB-INF
    
    # IDE support files that are overwritten by "grails upgrade"
    #  cf. GRAILS_HOME/scripts/CreateApp.groovy, target( createIDESupportFiles )
    # to be specific, you could replace "/*" below with your project name,
    #  e.g. "foobar.launch" (no slash)
    .classpath
    .project
    .settings
    /*.launch
    /*.tmproj
    
    # logs
    stacktrace.log
    /test/reports
    
    # project release file
    *.war
    
    /classes
    

    我是否遗漏了一些明显的东西?
    如何使IDEA 8.1.3忽略.gitignore中的所有项?

    1 回复  |  直到 15 年前
        1
  •  1
  •   Colin Harrington    15 年前

    我添加了 .gitignore 虽然 stacktrace.log 仍在存储库中。 当我更新 吉蒂格诺 ,我希望这个想法能被忽略。 堆栈记录 .

    在命令行上运行时 git status 我什么也看不见 堆栈记录 但它在“想法更改”窗口/选项卡中显示为已更改。在我删除了 堆栈记录 并在IDEA中刷新,它不再显示在更改窗口/选项卡中。

    其实没什么大不了的。