Languages
[Edit]
PL

Git - git config - error: could not lock config file - Permission denied

3 points
Created by:
Sylwia
3590

Problem:

Używając Windows 10 otrzymałem taki komunikat:

(Git - git config - błąd: nie można zablokować pliku konfiguracyjnego - Odmowa uprawnień)

$ git config --system --unset credential.helper
error: could not lock config file 
C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied

Jak rozwiązać ten problem?

Rozwiązanie:

Szybka naprawa:

W systemie Windows otwórz git bash jako administrator.

 

Krok po kroku:

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:

cd "C:\path\to\our\project\name"

 

5. Wykonaj polecenie:

git config --system --unset credential.helper

 

Pod Linux-em zrób to za pomocą polecenia sudo:

sudo git config --system --unset credential.helper

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join