EN
Git - git config - error: could not lock config file - Permission denied
7 points
I am on Windows 10 and got this error:
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
How to solve it?
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:
xxxxxxxxxx
1
cd "C:\path\to\our\project\name"
5. Execute command:
xxxxxxxxxx
1
git config --system --unset credential.helper
On linux run this command with sudo
command:
xxxxxxxxxx
1
sudo git config --system --unset credential.helper