Search code examples
gitvb.netgitignoreignore

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?


Solution

  • 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.)