Error to recreate new ssh key: gitconfig: Permission denied

0

On the computer where I work, there was another user. However I have to create a new ssh key and a new user.

But when I run the commands:

  

$ git config --global user.name "alex jose silva"

I get the message:

  

error: could not lock config file C: / Program Files   (x86) /GNU/SSH/.gitconfig: Permission denied

I chose to delete the SSH folder of the computer because error persists

  

error: could not lock config file C: / Program Files   (x86) /GNU/SSH/.gitconfig: No such file or directory

    
asked by anonymous 01.02.2018 / 21:09

1 answer

0

I could not fix the folder permission. I then chose to reinstall everything again:

Soon after everything went back to normal: Generate the .ssh key (it is necessary to create an SSH folder inside GNU) and clone the repositories

    
01.02.2018 / 22:43