I work with a new Windows installation and the same folder on my network share (NAS System). After installing git and tortoisegit I tried to connect to the git repository, but I always get this error. What has changed is the server and not the user.
I have run
git config --global --add safe.directory '*'
But that changes nothing. How can I fix this?
Where can I set the variable
GIT_TEST_DEBUG_UNSAFE_DIRECTORIES=true
This happens when a repo was cloned by a different user than your current user. In my case, I've encountered this issue after reinstalling windows, but using previously cloned git repositories (on a separate partition).
That should fix the error.
If you intend to use more than one user on a cloned repo, then I'd follow git instructions to add the exception.
git config --global --add safe.directory *
This worked for me, minor difference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With