I\'m getting this error when trying to set the global config:
$ git config --global user.name \"Your Name Here\"
error: could not lock config file /pathto/fi
I am old to the party but may be this will help some one. Thanks to @paperclip
In Windows 10:
Step 1: Go to This PC > Right click Properties
step 2: Click Advanced System Settings and click Environment Variables
Step 3: Under System Variables create new variable called HOME and input the value as %USERPROFILE% like below
Step 4: Important You must restart your PC to take effect
Step 5: Install Git for Windows now and optional Tortoise Git for windows if you prefer.
Make a git clone request or try pushing something in to your repo. Magic it will work. All should work fine now.