I know it depends on the project but i want to learn is there a common practice for typical asp.net core project(such as ignoring node_modules).
node_modules
as of 2020, you should be using
dotnet new gitignore