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.
Hah, I'm not the only one here. When I was deleting a file with some sensitive data from github repository, I ran into the same thing. I found that there is a cache that need to be cleaned. I'll try to find that again.
Answer by zORg_alex · Oct 17, 2021 at 10:33 AM
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.
Also you could remove those files from a repository database, but that's a bit more tricky than that and people advise to work around that, because you'd need to change whole history of commits, which isn't nice when your project has tracked issues.
How to remove file from Git history there is a git-repo-filter answer that I've used previously.
Your answer

Follow this Question
Related Questions
Can't upload project to GitLab 2 Answers
How to get rid of unity lockfile 3 Answers
Best Practices to use Perforce with Unity 0 Answers
How do you Backup you Projects? 2 Answers
How to properly set up YAMLMerge and a merge tool on windows 1 Answer