Android .gitignore

October 29, 2021


I was wondering should I exclude .idea directory from git, as Android Studio/IntelliJ seems to create many new files over time which is not excluded by the above .gitignore samples. I assume the .idea directory could be regenerated by Android Studio/IntelliJ if not found. Looking into a android sample repo by Google, seems like .idea directory is not stored and some .gitignore exclude entire /.idea while some do it selectively.

NOTE: You might want to exclude google-services.json as well.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.