I have a log file errors.log
which the software uses to report errors. The software does not create errors.log
by itself, so the file must exist before hand.
The problem is, if I add it to .gitignore
then developers would need to create it manually on their machines. If I don't ignore it, then each developer would be committing their own errors.log
contents after testing... proving a large hassle when merging.
How do I make it so that new developers acquire a blank copy of errors.log
when they initially clone it, but it is not added to working tree (regardless of changes) when git add -A
is used?