?

Log in

No account? Create an account
fedora 蓝色小药丸

gitconfig

被一个找不到的文件折腾得要疯掉了


Yijun@M4700W ~
$ git config --unset http.sslcainfo

Yijun@M4700W ~
$ git config -l |grep ssl
http.sslcainfo=C:/cygwin/Opt/Git-2.4.6-x64/mingw64/ssl/certs/ca-bundle.crt

Yijun@M4700W ~
$ git config --unset --global http.sslcainfo

Yijun@M4700W ~
$ git config -l |grep ssl
http.sslcainfo=C:/cygwin/Opt/Git-2.4.6-x64/mingw64/ssl/certs/ca-bundle.crt

Yijun@M4700W ~
$ git config --unset --system http.sslcainfo

Yijun@M4700W ~
$ git config -l |grep ssl
http.sslcainfo=C:/cygwin/Opt/Git-2.4.6-x64/mingw64/ssl/certs/ca-bundle.crt

Yijun@M4700W ~
$ pwd
/home/Yijun

Yijun@M4700W ~
$ which git
/Opt/Git-2.6-x64/cmd/git


最后还是用 Procmon,运行 git config -l,发现了配置文件是 c:\ProgramData\Git\config

删掉文件,遇到另一个问题,默认的路径不对。


Yijun@M4700W /cygdrive/d/workspace/dss-devdataprod-035-20151224
$ git push -u origin master
fatal: unable to access 'https://github.com/bbbush/dss.devdataprod035.ShinyApp.git/': error setting certificate verify locations:
CAfile: C:/cygwin/Opt/Git-2.6-x64/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none



之前是在 /mingw64/ssl,现在不知道怎么多了个 libexec 在里头。

重新安装 Git-2.6,安装程序重写了这个文件,里面包含了新的 http.sslcainfo 路径。那没有更新路径就是安装程序的问题了。
Tags:

Comments