I have read about general files that should be ignored in android studio project(What should be committed to the repository in the eclipse workspace?), but whenever i checkout to earlier versions on repo, i'm facing problems like difference in gradle version so i have to download gradle versions that i don't want to use in future and it is hard for me to download them.
so Which files on .idea directory should be committed to git repository? what about *.iml files?