Android .gitignore

Oct 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.

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.