How to Add a .gitignore to a .NET C# Project
A .NET C# project fills up with files that should never be committed: build output in bin and obj, editor settings, and secrets such as .env. The .NET SDK ships a ready-made .gitignore that covers all of them, and one command adds it to your project. This guide adds it, shows what it ignores, and proves a file is really ignored.
