Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

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: 小东西
Subscribe

  • 脸盲测试

    Results Out of 72 faces, you correctly identified 51. In other words, you got 71% correct. On our previous version of this test, the…

  • (no subject)

    http://blog.farmostwood.net/politics_bdwm 政治立场坐标(左翼<->右翼)0.1,经济立场坐标(左翼<->右翼)0,文化立场坐标(保守<->自由)0.5…

  • profiling

    xml: 374K xsl: 71K AltovaXML 不使用 xsl:key 的时候,需要查询 4k 次数据,耗时 45s+ 使用 xsl:key 的时候 xslt2: real 0m11.102s user 0m0.015s sys 0m0.030s xslt1: real…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments