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 do Run as Administrator.......you need to run the program in the run as administrator mode in windows