I run a private Minecraft server on my home server and like to keep all of the config files checked into a local git repo to make it easy to figure out what config values have changed and when. One issue I am running into is that a lot of .properties
files have a comment at the top of the file which contains the updated date of the file which gets updated every time the server is restarted.
For example:
#Minecraft server properties
#Sun Nov 27 13:36:33 PST 2022
gamemode=survival
Is it possible to ignore a specific line in .properties
files using .gitattributes
to prevent these files from showing up in my change history every time I restart the server?
Thanks!