I'm working on a TFS repository where check-ins of unnecessary files are strongly discouraged.
As it stands, some files, like .gitignore, fall into a category of unnecessary ones. Is there any way to prevent git-tfs from checking these files into TFS, while still tracking the changes in git?
I am aware of this solution, but it prevents git itself to refer to the files in question. I'm, however, interested in masking the files from TFS check-ins only.