Skip to main content
format question
Source Link
VonC
  • 14.5k
  • 5
  • 48
  • 62

I have windows 7 installed. C:\
C:\ is a local drive. H:\ H:\ is a work network drive that continually reinstalls everytimere-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
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)

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:H: drive somewhere (iI installed it with h:H: disconnected), but I don't know where/how to change this so it actually looks where the real .gitconfig.gitconfig on the cC: drive is.

thank you,
How to avoid this error message?

I have windows 7 installed. C:\ is a local drive. H:\ is a work network drive that continually reinstalls everytime 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.

thank you,

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?

Source Link
notthehoff
  • 165
  • 1
  • 1
  • 8

Trying to install and create new git repository for first time - I think disconnected work network drive is creating issue

I have windows 7 installed. C:\ is a local drive. H:\ is a work network drive that continually reinstalls everytime 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.

thank you,