Ok, this sort of thing is better off in your global git ignore rather than a project specific one. See here: https://help.github.com/articles/ignoring-files