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

后端 未结 5 2029
日久生厌
日久生厌 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:15

    This was being caused by bad paths in my environment variables (due to the profile migration).

    I opened up System Properties -> Environment Variables, and updated all references to C:\Users\ with the new one.

提交回复
热议问题