Sunday, April 10, 2022

Git - .gitignore file

 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.


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




Then run git status command, now these files will not be visible in untracked area.

git status


Post a Comment