Languages
[Edit]
DE

Behebung eines Fehlers beim Entfernen der Anmeldeinformationen durch Git - git config --system --unset credential.helper - Fehler: Konfigurationsdatei konnte nicht gesperrt werden

3 points
Created by:
Nikki
10520

1. Problembeschreibung:

Wenn ich git config ausführe, um Anmeldeinformationen zu entfernen, wird folgende Fehlermeldung angezeigt:

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

Screenshot aus Git Bash mit diesem Fehler:Screenshot showing error - git config --system --unset credential.helper error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig:  Permission denied - solution: https://dirask.com/q/9pYBkj

Ich benutze Git Bash unter Windows 10.
Wie kann man es lösen?

2. Lösung:

  1. Git Bash als Administrator öffnen
  2. Nochmals ausführen: $ git config --system --unset credential.helper
  3. Und git config funktioniert dann ohne Fehler

 

Screenshot aus Git Bash, wenn man diesen Befehl als Administrator ausführt:

Screenshot showing FIX for error - git config --system --unset credential.helper error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig:  Permission denied - solution: https://dirask.com/q/9pYBkj

Wie kann man Git Bash als Administrator öffnen?

  1. Auf Windows-Suche aufklicken
  2. "Git Bash" eintippen
  3. Mit der zweiten Maustaste darauf klicken (recht)
  4. Auf 'Als Administrator ausführen' klicken
  5. Wenn das Popup-Dialogfeld angezeigt wird, auf 'Ja' klicken
  6. Git Bash-Befehle mit Administratorrechte ausführen

Link zum Artikel - Wie kann ich Git Bash als Administrator öffnen?

3. Video mit Lösung

Literaturverzeichnis

  1. Git config - docs
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