Is there some sort of .gitignore for TFS? There's nothing in the context menus.
Asked
Active
Viewed 186 times
1
-
It seems there a .tfsignore file you can add. https://msdn.microsoft.com/en-gb/library/ms245454%28v=vs.110%29.aspx#tfignore – Ian May 17 '16 at 18:54
-
No `s` just `.tfignore` – NikolaiDante May 17 '16 at 18:55
-
Indeed Nikola, thank you. Also of interest, on Windows 10, you can't create a .tfignore file through explorer,. So creating a IHateTFS.txt file and attempting to rename it to .tfignore gives the error "You must type a filename". using a command prompt you can do "echo IHateTFS > .tfignore" to create the file. – Ian May 17 '16 at 19:07
1 Answers
5
There has been a very detailed answer to solve this from Pharylon in the question Get TFS to ignore my packages folder
Moreover, it's able to create a .tfignore
file through file explorer. You just need to rename a new .txt file with ".tfignore." (make sure also delete txt) It will auto change to the right .tfignore
file.
You can also use the auto automatically generated .tfignore
file, follow detailed steps from MSDN Link.

Community
- 1
- 1

PatrickLu-MSFT
- 49,478
- 5
- 35
- 62
-
I don't believe the rename step works under Windows 10. Here's a screen shot of what happens when I do. Works from the command line though. http://imgur.com/TRjOD9k – Ian May 19 '16 at 07:47
-
Test pass with WIndows10. You should unmark the "Hide extensions for known file types " in `Folder Options-- View` (click view in File Explorer ,then click options) first. Then it will display XXX.txt. After this, try it again. – PatrickLu-MSFT May 19 '16 at 07:55
-
This isn't the option Patrick. I have "Hide extensions..." disabled (so I can see extensions" as one of the 90 things I do everytime I reinstall the OS. It' interesting it works for you. I'm using Windows 10 Pro and the test fails on three seperate machines. Create an empty "new document.txt" from the context menu, then just attempt to rename it. Fails with the error I included in the screenshot above on all machines :/ – Ian May 19 '16 at 20:29
-
As an aside, I can't actually remember changing it recently, so I wonder if it's included in the settings now synced with your Microsoft account. It's one of the features of Windows 10 I do like. It is "off" though, I need extensions! – Ian May 19 '16 at 20:40