Could you use [global gitignore](https://help.github.com/articles/ignoring-files#create-a-global-gitignore) to ignore files like `.idea*` and `target`?