PL
Git - git config - error: could not lock config file - Permission denied
3 points
Używając Windows 10 otrzymałem taki komunikat:
(Git - git config - błąd: nie można zablokować pliku konfiguracyjnego - Odmowa uprawnień)
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
Jak rozwiązać ten problem?
W systemie Windows otwórz git bash jako administrator.
1. Otwórz wyszukiwarkę Windows
2. Wpisz: Git Bash
3. Kliknij drugi przycisk myszy i wybierz: Uruchom jako administrator
4. Przejdź do katalogu swojego projektu:
xxxxxxxxxx
1
cd "C:\path\to\our\project\name"
5. Wykonaj polecenie:
xxxxxxxxxx
1
git config --system --unset credential.helper
xxxxxxxxxx
1
sudo git config --system --unset credential.helper