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

  • zz: 墙、感染、信任和欺骗 by 霍炬 (歪理邪说 2015-09-21)

    (全文转载自 墙、感染、信任和欺骗 2015-09-21 霍炬 歪理邪说) 先跟读者道个歉,最近一段时间有点忙,好久没更新。 而写文章这事,一旦有一段时间不写就会越来越写不下去。 很长一段时间我甚至不敢打开公众帐号后台,一怕被催稿, 二怕看到惨烈的退订数字以至于更不敢写……

  • zz:Pragmatism

    DDJ_1306, "Orthodoxy vs. Pragmatism, or How I Became a Better Developer" By Andrew Binstock "[...]When young I was and green, I had…

  • zz:回来后,一些搞不懂的“共识”

    http://www.mitbbs.com/article_t/Returnee/13379685.html 共识一:欧美搞设计、掌握技术和市场,中国只会生产。利润都被欧美赚走了。 但是结果是中国越来越有钱,欧美越来越没钱,这算是共识吗? 共识二:中国贫富差距大,钱都被少数人赚去了;…

  • 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