Git Permission denied for longer pathnames

Asked

Viewed 47 times

1

I have to do the clone of the project in the directory:

C:\xampp_5.3\htdocs\Meu-projeto

First running configuration to allow pathnames more extensive:

git config --system core.longpaths true

Executing the above command returns this error:

error: could not lock config file C: Program Files Git mingw64/etc/gitconfig: Permission denied

How to solve this?

  • Willian, doesn’t this happen because the path is being passed half against bar and half with bar? Try to normalize your path

  • right worked, thank you.

  • I will post an answer so that other people who go through it can consult.

1 answer

0

I believe that the reason for the error is the bars on your path, as they are half bars and half bars against bars the error happens. Try to normalize the bars so that they are all the same.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.