TFS/Git extensions seems to ignore .gitignore

后端 未结 2 2023
抹茶落季
抹茶落季 2020-12-09 03:18

I\'m running VS 2013 Update 3 with the \'Visual Studio Tools for Git\' extension. This extension is for users of both team explorer and Git and I have no other Git and TFS r

相关标签:
2条回答
  • 2020-12-09 03:18

    We recently had the the same problem with the VS2013 git provider ignoring the .gitignore for only a few files. It turned out, there was ms-persist.xml in the .git folder with the two relevant sections <TrackedFiles> and <IgnoredFiles>.

    As suggest in a blog post by Eric Nelson closing VS, deleting the file and restarting VS again solved the problem.

    0 讨论(0)
  • 2020-12-09 03:31

    You say that you are using VS 2013? If so, you do not need the extra git tools. I don't have them installed on my VS 2013, can use TFS with GIT just fine, and I don't experience the issue with .gitignore being ignored.

    You can even manage the .gitignore via the IDE GUI so formatting should always be in the format desired by TFS/VS: http://msdn.microsoft.com/en-us/library/vstudio/hh967655.aspx#ignore

    As stated in the Requirements from: https://visualstudiogallery.msdn.microsoft.com/abafc7d6-dcaa-40f4-8a5e-d6724bdb980c:

    Note: Visual Studio 2013 includes Git tools by default so these tools are not needed. Learn more on MSDN: http://msdn.microsoft.com/en-us/library/vstudio/hh850437.aspx

    0 讨论(0)
提交回复
热议问题