PT
Git - git config - error: could not lock config file - Permission denied.
3 points
Eu estou no Windows 10 e encontro este erro:
xxxxxxxxxx
1
$ git config --system --unset credential.helper
2
error: could not lock config file
3
C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied
Como solucionĆ”-lo?
SoluĆ§Ć£o rĆ”pida:
No Windows, abra o git bash como administrador e siga as instruƧƵes abaixo:
Passo-a-passo:
1. Abra o Windows Search
2. Digite: Git Bash
3. Clique no segundo botĆ£o do mouse e selecione: Executar como administrador
4. VĆ” para o diretĆ³rio do seu projeto:
xxxxxxxxxx
1
cd "C:\path\to\our\project\name"
5. Executar comando:
xxxxxxxxxx
1
git config --system --unset credential.helper
No linux, execute este comando com o sudo
:
xxxxxxxxxx
1
sudo git config --system --unset credential.helper