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