Those that are using TortioseGit UI click Right Mouse on the file (or folder) you want to ignore -> TortoiseGit -> Delete and add to ignore list, here you can choose to ignore all files of that type or this specific file -> dialog will pop out Click Ok and you should be done.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/13c80507-3749-4931-9f74-fdcac75920d5/Untitled.png