Top community members
All Wiki Articles Create Wiki Article

In the past we had a dream,
to have place where we could share IT knowledge,
to ask questions without fear that someone will judge us.

Now we are a group of people who make this dream come true. ❤ 💻

If you think sharing knowledge and helping other is valuable.

join our community - Click here

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

0 contributions
3 points


I am on windows 10 and got this error:

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

How to solve it?


Quick fix:
Under windows open git bash as administrator

Step by step:
1. Windows search
2. Type: Git Bash
3. Second mouse button - Run as administrator
4. Change dir to your project:

cd "C:\our_project_name"

5. Exec cmd:

git config --system --unset credential.helper

On linux run this cmd with sudo:

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

Suggested wiki articles:

Suggested findings

Let's do the work and have some fun
  • Dirask is online IT community for professionals and hobbyist to share their knowledge and help each other in extraordinary easy way. ❤ 💻 🙂
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    we will help you. 👍 ✔ 🦄
Read more