I am getting an error message when I try to run the command git config --global user.name
into bash. The error message reads:
error: could not lock config file C:/Projects/.gitconfig: No such file or directory
When I do echo $HOME
, I get /c/projects
The folder C:/Projects
doesn't even exist anymore so I have some idea about what may be going on here. The PATH of an older version of GIT to reach the home directory was c:/projects
and some wires may be getting crossed. Right
Well now... if this is the issue I don't know how to change the path back to C:/users/anthonyd
(where the current .gitconfig
file is located along with .bashrc, .gitignore. etc.) and until I do I can't run any commands without issue.
Of course I could be wrong about what's causing the issue, but if there is someone that recognizes this issue, or has had this problem before I would appreciate help with a fix.