Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Visual Studio 2013 and .gitignore

$
0
0

It seems that the Visual Studio 2013 git functionality will not abide by the .gitignore file in the repository.  It will not ignore files with .cpp or .h extensions.  This is a problem because we are using native nuget packages which put files with these extensions inside the /packages/ directory inside the solution directory.  Visual Studio sees these and wants to add them in the next commit unless I go in and manually exclude them.  This is despite the fact that I have a line in my .gitignore that is

packages/

I also tried adding

packages/**/*.cpp
packages/**/*.h

To see if I could force it, still no luck.  The command line git tools behave just fine.  Also visual studio correctly ignores other files in packages, it is just the C++ files that it won't give up.

Does anyone know why visual studio is doing this?  And how I can make it stop.  I am concerned because eventually some of our developers are going to forget to check the included files list when doing a commit with visual studio, and we will get a bunch of package contents commited to our repositories.


Viewing all articles
Browse latest Browse all 21115

Trending Articles