Ignore files when committing Android studio

I put this line in .gitignore:

*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures

I managed to import my project to svn, not including these files. But when I want to commit, the core, all files are checked. Why?

I would like to automatically disable these files.

+4
source share
1 answer

If you are using SVN (Not Git), you need to specify ignore files / folders elsewhere.

Switch to:

FileSettings

Version ControlIgnored Files

And add them using the plus button, selecting the desired folder / file.

adding ignored files

The files you choose are up to you. Above is the directory / files that I select. Things that I think should be ruled out.

. , / () . .

+4

All Articles