Files .log on gitignore

Hi,

I am using Unity 2020.3.21f1 and I add to the .gitignore file to ignore it.

After this, on the GitHub desktop, I still see those files to need a commit.

Is it normal this?

And one more question these files it is good to ignore or not?

You should ignore the entire Logs folder as per: https://github.com/github/gitignore/blob/master/Unity.gitignore

Thank you.

I tried this but the .log files are still there.

This is probably because git wont ignore files that have been tracked in the past. I saw a post on stackflow where they talk about a solution to this git - Apply .gitignore on an existing repository already tracking large number of files - Stack Overflow

1 Like

Thank you!

I will try it at the next repo.

Update

I try it and it works. Thanks!