I have windows 7 installed.
C:\
is a local drive. H:\
is a work network drive that continually re-installs every time I boot. I have learned to just disconnect it whenever I am doing any coding from home or installing coding related apps, as I tend to have issues.
I installed Git and tried to create a repository for the first time.
It gives me the following error:
error: could not lock config file H:\/.gitconfig: No such file or
directory error: could not lock config file H:\/.gitconfig: No such
file or directory
while executing "exec {C:/Program Files/Git/libexec/git-core/git-config.exe} --global --add
gui.recentrepo C:/Users/bmyhre/Desktop/Testing/projects/skeleton"
("eval" body line 1)
invoked from within "eval exec $opt $cmdp $args"
(procedure "git" line 23)
invoked from within "git config --global --add gui.recentrepo $path"
(procedure "_append_recentrepos" line 16)
invoked from within "_append_recentrepos [pwd]"
(procedure "_git_init" line 17)
invoked from within "_git_init $this"
(procedure "choose_repository::_do_new2" line 5)
invoked from within "choose_repository::_do_new2 ::choose_repository::__o1::__d"
invoked from within ".buttons.next invoke "
invoked from within ".buttons.next instate !disabled { .buttons.next invoke } "
invoked from within ".buttons.next instate pressed { .buttons.next state !pressed; .buttons.next instate !disabled { .buttons.next invoke
} } "
(command bound to event)
My guess is that it is trying to reach the H:
drive somewhere (I installed it with H:
disconnected), but I don't know where/how to change this so it actually looks where the real .gitconfig
on the C:
drive is.
How to avoid this error message?
C:\Users\{username}\.gitconfig
that might be of any interest?