I guess ultimately the question is what NOT to take into your code versioning system… This is the contents of my .gitignore file… there may be other things which need to be ignored but that’s what I use:
Backup/
Debug/
Release/
bin/
obj/
_UpgradeReport_Files/
CodeAnalyst/
*.csproj*
*.user
*.suo
*.ncb
*.dll
*.exe
*.pdb
ipch/
*.sdf
*.opensdf
*.vsmdi
*.proj
*.rej
*.orig
*.bak