git doesn’t exactly play nicely with Visual Studio (or maybe it’s the other way around). It probably doesn’t matter who’s fault it is. Fact is, if you add a Visual Studio solution to a git repo, you are bound to end up with a tonne of files you don’t really want in there. Cache files, build files, and all the other VS bloat.
So I went searching for a “prepacked”
.gitignore file so I didn’t have to guess all of the file types myself. So I Googled and got this page on GitHub.
Many thanks to the 240+ contributors to-date for compiling this great resource.