79587575

Date: 2025-04-22 22:56:59
Score: 1
Natty:
Report link

I hit the same issue with upgrade to PyCharm 2024.3.5 when using WSL2. I tried the solutions above and had no luck. Looking at the processes running in the VM, PyCharm has sudo'd itself as root, and so my fix was:

sudo git config --global --add safe.directory /path/to/my code

This makes sense because root does not own the files.

Reasons:
  • Blacklisted phrase (1): no luck
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dan