My Default .gitignore File
Every time I create a new Git repo, I always have to go look for a previous copy of my .gitignore file. I thought it would be a great idea to just post it up for all to find, in case they were looking for it. This particular file is built around Visual Studio projects.
# Ignore file for Visual Studio
# use glob syntax
syntax: glob
# Ignore Config files with keys and passwords
#ServiceConfiguration*.cscfg
#Web*.config
#App\*.config
# Ignore Visual Studio files
_.obj #_.exe #_.pdb
_.user
_.aps
_.pch
_.vspscc
_.vshost.\*
_\_i.c
_\_p.c
_.ncb
_.suo
_.tlb
_.tlh
_.bak
_.cache
_.ilk
_.log
_.lib
_.sbr
_.scc
_.orig
UpgradeLog*.*
UpgradeReport*.*
[Bb]in
[Dd]ebug*/
obj/
[Rr]elease*/
\_ReSharper*/
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.\*
_.[Pp]ublish.xml
glob:_.vs10x
\*.ReSharper
[Pp]ublish
[Rr]eleaseFiles
[Cc]sx/
[Bb]ackup1/
[Pp]ackages/
# Mac Files
.DS*Store
\*.DS_Store
.*\*
About Kevin
Kevin Griffin has been running production .NET applications and teaching developers for over two decades. A 16-time Microsoft MVP specializing in ASP.NET Core and Azure, Kevin brings real-world experience from his own SaaS products alongside his consulting work at Swift Kick. He's hosted the Hampton Roads .NET User Group since 2009 and founded RevolutionVA, the nonprofit behind Hampton Roads DevFest. Kevin's talks blend hard-won lessons from production systems with practical advice you can use Monday morning.
Categories