In this blog post, We are going to learn the files not to commit for the angular project.
gitignore file is used to maintain untracked files which will be useful during git commit process to ignore the files.if each line added in gitignore file is to stop tracking the files during commit files. The angular project can be generated manually as well as an angular CLI tool.
We will see the gitignore file for angular cli project
gitignore file is created by default during angular project creation using cli tool
We have to add the following things to gitignore file to ignore the files
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
# IDEs and editors
# IDE - VSCode
# System Files
Based on project needs, You can add/remove any directory or files in this files. You have to use regular expression ** to ignore subdirectories inside a directory,