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.