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

  • My tweets

    Wed, 09:34: WIthout threading support, Outlook managed to introduce "Focused" and "Other" as tabs in the inbox. Now I got two inbox to check.

  • My tweets

    Tue, 11:06: With IntelliJ IDEA it is really hard to tell which window is "active" by looking at the taskbar icon. The project n……

  • My tweets

    Sun, 21:01: Scared a little bit https://t.co/MQI4IPzfDa Sun, 22:07: https://t.co/22J8hD4xrp ugly paradise

  • 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