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
Just use the following command if you wanna set configuration in system level:
$ sudo git config --system user.name "my_name"