Where is the standard Visual Studio 2013 .gitignore located?

So, some time ago, I noticed that Visual Studio automatically created a .gitignore file whenever I created a solution in an existing local git repo folder. Fine. However, I noticed that it ignores some NCrunch files (* .ncrunchsolution and * .ncrunchproject), which really should be in the original control. So I decided to jump in to fix it. The problem here is that I don’t know where it gets this file from by default. I see that this is basically an old version of VisualStudio.gitignore in the gitignore GitHub project (which happened to fix the NCrunch problem in April ).

Where can I find or configure a source for .gitignore that the Visual Studio git provider automatically places in the git repository?

( Edit : I looked at the ignore topic, which I suppose is the white papers for VS 2013 git functionality , but it doesn’t help to find a system-wide option for this. It just mentions the “default .gitignore file provided by Visual Studio”, without mentioning how to modify this file.)

+7
git gitignore visual-studio-2013
source share
1 answer

By default .GitIgnore is an embedded resource

 // Assembly Microsoft.TeamFoundation.Git.CoreServices, Version 12.0.0.0 Location: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Git.CoreServices.dll Name: Microsoft.TeamFoundation.Git.CoreServices, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Type: Library // public resource Microsoft.TeamFoundation.Git.CoreServices.Resources.VS.gitignore 

Therefore, I do not think you can update it.

It has recently been updated with Visual Studio 2013u2, but it seems that ncrunch files are still part of the default ignore. I suspect that a newer version will be included in 2013u3 or, possibly, as an interim update. Until then, you will need to manually install the gitignore files or create the default gitignore in your user profile .

+4
source share

All Articles