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.