Which files in .idea folder should be tracked by Git?

前端 未结 5 1998
失恋的感觉
失恋的感觉 2020-12-14 15:09

Unlike Netbeans, in Jetbrains IDEs, the setting files related to user and team are mixed in the same folder that makes it tricky when you need to push them to git.

Th

5条回答
  •  星月不相逢
    2020-12-14 15:27

    After some investigation, I came up with https://github.com/salarmehr/idea-gitignore

    #.idea/.gitignore
    
    # ignore all .idea files ...
    *
    # except  ...
    
    # Version Control configuration
    !vcs.xml
    
    # how IDEA should treat the text files
    !encodings.xml
    
    # automatic code formatting
    !codeStyleSettings.xml
    
    # project-specific words
    !dictionaries
    
    !copyrights
    !misc.xml
    !sqldialects.xml
    

    Above files should practically be identical for all team members.

提交回复
热议问题