Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git ignore file for VB.NET projects

I wan to place a VB.NET project under Git control in Windows (was previously under Visual Source Safe - long sad story of repository corruption, etc.). How should I set up the ignore file? The exclusions I'm thinking of using are:

  • *.exe
  • *.pdb
  • *.manifest
  • *.xml
  • *.log (is Git case sensitive on Windows? Should I exclude *.l og as well?)
  • *.scc (I gather these were left over from Visual Source Safe - maybe I should delete them?)

Is this a sensible list? Should I be excluding directories?

like image 495
John C Avatar asked Feb 10 '09 22:02

John C


1 Answers

Here's what I have for my C# projects:

ProjectName/bin
ProjectName/obj
*.user
*.suo
_ReSharper.*
*.sln.cache

With the bin/obj directories gone, you don't need to exclude all EXEs, XML files etc - which is handy, as it means you still get to put in the ones you want :) (You might have sample XML files etc.)

like image 99
Jon Skeet Avatar answered Oct 14 '22 02:10

Jon Skeet