In the .gitignore (hidden) file we add those entries of the files which are not part of the git local repo but these files are present in ...
In the .gitignore (hidden) file we add those entries of the files which are not part of the git local repo but these files are present in your git working directory. You can also use the wildcard characters in the .gitignore file.
Example.
There are log files and exe files which are present in your current git directory and you do not want to keep in the git local repository so you will create a .gitignore file something like below
*.log
*.exe
.gitignore
Then run git status command, now these files will not be visible in untracked area.
git status
COMMENTS