Instantly share code, notes, and snippets.

Embed
What would you like to do?
gitignore file for C# project
~
build/
[Bb]in
[Dd]ebug*/
obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult
[Bb]uild[Ll]og.*
*.swp
*.userprefs
*.obj
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*.pidb
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.lib
*.sbr
*.scc
*.[Rr]e[Ss]harper
*.zip
*.[Pp]ublish.xml
@neerajsaini1982

This comment has been minimized.

Copy link

neerajsaini1982 commented Aug 24, 2012

How do we use this file?

@poikilos

This comment has been minimized.

Copy link

poikilos commented Mar 25, 2017

put it in your git repository, replacing any premade .gitignore file that may exist there. Then, when you push to a remote git repository such as github, the intermediate (generated) files which are unecessary and/or machine-specific will not clutter up your remote repository nor interfere with usage by people using/compiling your program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment