I have a repository, on Windows 7, with a moderately deep directory tree, with lots of .log files scattered about. These .log files are output by programs for diagnostic purposes and I do not want Git to track them, report on them, or notice them in any way.
When I issue the 'git status' command I get a huge listing with all of the .log files displayed. I'd like to eliminate the .log files (and some other similar files as well) from the 'git status' listing so I can focus on the files containing program code.
I assume (perhaps incorrectly) that the way to do this is to specify what to omit in the '.gitignore' file. Is this the way to go? Anyway, below is the current contents of my '.gitignore'. It has absolutely no effect on the output of 'git status':
*.log
/*.log
./*.log
./**/*.log
**/*.log
/*.log
.\*.log
.\**\*.log
**\*.log