dotnet add gitignore code example Example: gitignore dotnet mvc # same command for all dotnet applications dotnet new gitignore