Changed .gitignore. According https://intellij-support.jetbrains.com/entries/23393067 the entire .idea folder except workspace.xml and tasks.xml should be shared.