What files should I add to SVN ignore in an Projec

2019-01-21 22:18发布

问题:

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

回答1:

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

  • gradle
  • .idea
  • *.iml
  • build
  • .DS_Store (for mac only)


回答2:

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.


回答3:

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