.gitignore files don't belong in your project's release artifacts/tarballs.
It's cool that you ask #Git to ignore e.g. the config file of your web application during development. Nobody wants you to accidentally commit the config you're using while developing.
But: I just wanted to throw basically the whole installation of your app, including _my_ local config file, into a repo, and I can't, since I can't (cleanly) overrule your decision to ignore the config. 😒