2

I found the solution for problem when I tried cloning my project its shows wrong user/password, but upon trying to unset credentials using command:

git config --system --unset credential.helper

the error exist as:

Could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig:Permission denied
Could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig:Invalid argument
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755

1 Answers1

1

Similar to this comment ,try and restart "C:\Program Files\Git\git-bash.exe" as administrator.

That should allow you to modify the system git config file.

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755