Create a gist now

Instantly share code, notes, and snippets.

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

How do we use this file?

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