grid96
grid96

Reputation: 31

How can i fix my fatal git error?

I just wanted to commit my changes to my local git, when i noticed that the Local Changes window was missing all the changes of the past 3 hours, and was just showing the following error message:

Error message in IntelliJ IDEA

I haven't changed anything in my setup compared to the last 50 commits. I had this problem 2 months ago already and wasn't able to fix it back then either, but I also noticed it fairly quickly and just pulled again and repeated the changes, but this time its not that easy.

How can I fix this problem, and restore the detected changes again, to stage them for a commit? In the files the changes are still there, but whatever I do, it's not getting tracked anymore.

EDIT: Hitting the refresh button in the local changes window in IntelliJ fixed it. Problem solved.

Upvotes: 0

Views: 35

Answers (1)

VonC
VonC

Reputation: 1323125

Whenever you see a permission denied on Windows when a process (here git.exe ls-file) tries to access a file, it is possible that file is preempted by another process.

When you see that error message, open a Process Explorer and look for (CTRL+F) the filename, to see if another process uses it.

Upvotes: 1

Related Questions