Crispín Klander
Crispín Klander

Reputation: 87

Error when attempting to modify Git config file in Windows

I am trying to modify the Git config file in Windows

git config --global user.name myname 

but I get this error:

error: could not lock config file (null)/(null)/.gitconfig: No such file or directory

Upvotes: 2

Views: 1364

Answers (1)

Roman Marusyk
Roman Marusyk

Reputation: 24619

Ensure your Environment Variables are correctly setup.

right-click on My Computer => Properties => Advanced => Environment Variables => System Variables

Find HOME variable and set it to %USERPROFILE%

Upvotes: 6

Related Questions