In .gitignore add a single line to ignore all files named temp1.log, temp2.log, and temp3.log:
.gitignore
temp1.log
temp2.log
temp3.log
Click here to try again.