ignore file name inywhere gitignore code example
Example 1: git exclude folder
directory_to_exclude/
Example 2: gitignore a specific file
$ echo debug.log >> .gitignore $ git rm --cached debug.log rm 'debug.log' $ git commit -m "Start ignoring debug.log"