Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore files when commit 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 on svn not include these files. But when I want to commit, basic, all of files are checked. Why ?

I would like unchecked these files automatically.

like image 658
BSK-Team Avatar asked Mar 02 '16 14:03

BSK-Team


Video Answer


1 Answers

If you are using SVN (Not Git) then you need to specify the ignore files/folders in a different location.

Go to:

File -> Settings

Version Control-> Ignored 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 i choose. Things I think are supposed to be excluded.

Note: Make sure you are selecting folders/files from the correct (current) project. As it defaulted to another project location for me at first.

like image 199
IAmGroot Avatar answered Sep 17 '22 21:09

IAmGroot