Samples
- https://github.com/github/gitignore/blob/master/Android.gitignore
- https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore
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.