UnityShaderCompiler.exe.log keeps appearing on Github Desktop app even after .gitignore

No matter how many times I add these in .gitignore they will still pop up as modified.

stack overflow on same topic

You need to rightclick your repository in repository selection dropdown list and open it in a cmd or powershell, then:

git rm -r --cached Logs

Now I see those files as deleted in a commit, but they are left untouched in the folder. They just can’t be stopped tracked immediately.