Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio modifies ./idea/vcs.xml at startup

since it's not recommended to ignore the entire .idea folder in Android Studio most files in there are tracked by git. The strange thing however is that, after every launch, the same line is added to vcs.xml even if there are already dozens of them.

<mapping directory="$PROJECT_DIR$" vcs="Git" />

This gets old pretty quickly.

Is there a purpose for this behaviour or is it simply a bug? Further can Android Studio be prevented from doing such modifications when it is launched?

Thanks in advance.

Edit: Also ./idea/misc.xml constantly changes between JDK_1_7 and JDK_1_8.

like image 746
qantik Avatar asked Aug 30 '16 13:08

qantik


1 Answers

I highly recommend you to read this StackOverflow post: What should be in my .gitignore for an Android Studio project? as you would find here explanation which files should be ommitted on git push.

Personally, I don't commit ./idea/misc.xml and vcs.xml. I added them to .gitignore file. I'm using for this purpose template taken from: https://github.com/github/gitignore/blob/master/Android.gitignore

Hope it will help

like image 128
piotrek1543 Avatar answered Sep 30 '22 10:09

piotrek1543