A .NET (C#) Developer’s .gitignore File


As a recent convert to the awesomeness that is git (my current flavor is msysgit), I find myself continuously needing to update the .gitignore file that I copy and paste between my repositories. Here’s what my ignore file currently contains:

obj

bin

deploy

deploy/*

_ReSharper.*

*.csproj.user

*.resharper.user

*.resharper

*.suo

*.cache

~$*

</div> </div>

The “~$*” line is for MS Office temp files. Other than that, it’s a pretty common list of files and folders that .NET (C#) developers would want to ignore in the git repositories.

What does your .gitignore file look like? What am I missing from mine?

I’m Presenting At Austin Code Camp 2009