While trying to set up Git with my GitHub account the following error keeps persisting whenever I try to do a global config.
It works fine for repositories, but the global doesn't work.
Here's how it shows:
$ git config --global user.name "username"
error: could not lock config file C:/Path/to/.gitconfig: File exists
I'm using Git 2.21.0 on Windows 10 Pro.