Languages
[Edit]
EN

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

7 points
Created by:
Root-ssh
178290

Problem:

Edit

I am on Windows 10 and got this error:

How to solve it?
 

Solution:

Edit

Quick fix:
Under Windows open Git Bash as Administrator

Step by step:
1. Open Windows search
2. Type: Git Bash
3. Click second mouse button and select: Run as administrator
4. Go to your project directory:

5. Execute command:

On linux run this command with sudo command:

1
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.

Git

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