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
Should you try look into https://www.gitignore.io/
It's like a repo of .gitignore best practices in several languages and tools. Curiously the code sugested for visuaStudio/xamarinStudio is very similar to the generated code from Yeoman.