Skip to content

Instantly share code, notes, and snippets.

@jmeridth
Created March 29, 2011 20:55
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jmeridth/893266 to your computer and use it in GitHub Desktop.
Save jmeridth/893266 to your computer and use it in GitHub Desktop.
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
Copy link

How do we use this file?

@Poikilos
Copy link

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