In .gitignore, ignore all .log files, except main.log:
.gitignore
.log
main.log
Click here to try again.