Ignore it as it’s name implies; it is harmless
It’s part of our source control management system for development and if you choose to manage your deployments of MODx using Git at some point, you may want to start with the ignore rules provided in the file. There are other .gitignore files in other locations as well, some are used to make sure empty directories are created, and others are simply there to make sure things are ignored in certain locations so they never get committed to the product accidentally.