Which files should I add to SVN ignore for an Android Studio project?

前端 未结 3 1572
执笔经年
执笔经年 2020-12-13 13:24

In Eclipse, I had the custom of adding bin and gen directories to SVN ignore. But now, using Android Studio (based on IntelliJ IDEA), which files should I ignore?

相关标签:
3条回答
  • 2020-12-13 13:28

    I've used the following SVN ignore list sucessfully:

    .gradle
    local.properties
    .idea/workspace.xml
    .idea/libraries
    .DS_Store
    build
    

    The ignore should be applied recursively.

    Reference: Same question, for git

    0 讨论(0)
  • 2020-12-13 13:32

    I added the following items in my .gitignore, it should be the same for SVN:

    • gradle
    • .idea
    • *.iml
    • build
    • .DS_Store (for mac only)
    0 讨论(0)
  • 2020-12-13 13:51

    See this IntelliJ IDEA KB article: "How to manage projects under Version Control Systems".

    Add to Subversion:

    • all files under /.idea directory in the project root but ignore workspace.xml and tasks.xml,
    • all .iml module files.
    0 讨论(0)
提交回复
热议问题