What about a project-global .gitgnore? Also, please ignore .idea and *.iml