“Git error: could not lock config file C:/Users/old_profile/.gitconfig: No such file or directory” after profile migration

后端 未结 5 2033
日久生厌
日久生厌 2020-12-15 11:21

I have an interesting error that keeps coming up when using git for windows (version 2.12.0.windows.1). I recently migrated my windows profile directory from one location to

5条回答
  •  长情又很酷
    2020-12-15 12:02

    My problem was the same:

    “Git error: could not lock config file C://.gitconfig: No such file or directory”

    1. I saw that "C:/<...>/" no any files, and I found file ".gitconfig" in C:/Users/profile/.gitconfig
    2. I did copy-paste .gitconfig to C:/<...> and reload PC, after Run git as Administrator and all worked correct.

提交回复
热议问题