I don't think these extra rules belong in the repository's `.gitignore` maybe set them up as global rules for your environment http://stackoverflow.com/questions/7335420/global-git-ignore