0

I'm new to Visual Studio and using VS2017. Which Visual Studio project-files (like myproject.sln, etc.) should I check into Git to keep the configuration (include directories, linker options, etc.) when checking out on a different machine? Should I check in the full .vs/ directory? It's very big (2GB for some reason, although my repo is only 80MB) and I don't wan't a big repository, if avoidable.

Thank you for your answers

YpsilonZett
  • 100
  • 1
  • 7
  • Of-course you should keep .sln file in repository. It will help reopen the project using solution file. But directories like `bin, obj, packages, .vs` should not be pushed to repository. – Talha Junaid Jan 07 '18 at 10:18

1 Answers1

0

All your answers are in this .gitignore file that you should use :

https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

Philippe
  • 28,207
  • 6
  • 54
  • 78