1

So before this I had a problem which is: LF will be replaced by CRLF in git, At the end I managed to disable the warning messages by typing in the command prompt the following:

git config --global core.autocrlf false
git config --global core.safecrlf false

And the warning disappeared and I went to my GitHub desktop and commit it, Everything was working fine till this error popped up error: open("projectName/Temp/UnityLockfile"): Permission denied fatal: Unable to process path projectName/Temp/UnityLockfile.

I'm in windows 10, Making a unity project.

cqveman
  • 11
  • 3
  • There are many files in Unity projects that should not be committed to source control including all of `Temp/*`. You need a `.gitignore` file. https://github.com/github/gitignore/blob/main/Unity.gitignore should get you started. – Retired Ninja May 20 '22 at 22:53
  • @RetiredNinja hey i still did what you've told me and the same error keeps popping – cqveman May 20 '22 at 23:11
  • It's possible you put the file in the wrong place, named it incorrectly, or if you've already staged files you'll need to unstage them and then stage them again. – Retired Ninja May 20 '22 at 23:14
  • 1
    If you had added `UnityLockfile` (or any other file under `Temp/`) in a previous commit, you need one extra command to make git "forget" about it : see ["How can I make Git "forget" about a file that was tracked, but is now in .gitignore?"](https://stackoverflow.com/questions/1274057) – LeGEC May 21 '22 at 05:41

0 Answers0