Trouble setting up git with my GitHub Account error: could not lock config file

后端 未结 19 1594
甜味超标
甜味超标 2020-11-28 05:52

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         


        
19条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 06:23

    I started getting this error after windows upgrade. My Home variable somehow removed after windows upgrade. Issue resolved by adding HOME variable as "C"\Users\myusername".

提交回复
热议问题