Of Code and Me

Somewhere to write down all the stuff I'm going to forget and then need

The .gitignore file I use with Visual Studio projects March 26, 2010

Filed under: Git,Visual Studio — Rupert Bates @ 7:48 pm

This seems to keep most of the crap out and I haven’t found anything necessary that it excludes yet.

# compiled source #
###################
*.com
*.class
*.dll
*.exe
*.pdb
*.dll.config
*.cache
*.suo

# Include dlls if they’re in the NuGet packages directory
!/packages/*/lib/*.dll

# VS Upgrade stuff #
####################
UpgradeLog.XML
_UpgradeReport_Files/

# Directories #
###############
bin/
obj/
TestResults/

# Web publish log #
###################
*.Publish.xml

# Resharper #
#############
/_ReSharper.*
*.ReSharper.*

# Packages #
############
# it’s better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sqlite

# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db

Advertisements
 

6 Responses to “The .gitignore file I use with Visual Studio projects”

  1. patrick Says:

    Thank you so much! i really appreciate this gitignore file!

  2. Eugene Says:

    Thanks, that was very useful!
    I also added these to my list:
    *.suo
    *.user
    Publish.xml

  3. hahn Says:

    where i must place gitignore file in visual studio?
    thanks


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s