I tried several different combinations, but I was not able to exclude the mongodb log from git.
My gitignore:
mongodb/data/
mongodb/data/log/mongod.log
mongodb/data/**/*.log
/mongodb/data/**/*.log
None of them work. When I type
git status
I still get the following:
modified: mongodb/data/log/mongod.log
How can I ignore this file? The data under mongodb/data/db is ignored. I do not understand why the log file is constantly showing up again.