Git Clone Fails with sslRead() error on OS X Yosemite

前端 未结 4 2004
面向向阳花
面向向阳花 2020-12-09 04:40

I\'m currently on OS X Yosemite 10.10.3, and trying to git clone an existing repo which works fine on Windows. I\'ve tried a combo of installing git through homebrew with c

相关标签:
4条回答
  • 2020-12-09 04:47

    Just installing git with "brew install git --with-brewed-curl --with-brewed-openssl" didn't help.

    I got resolved by setting 2 remote URL with any protocol https:// or ssh://.

    1. upstream for team repo
    2. origin for fork repo

    Now, I am able to push with my changes to origin without any problem.

    Hope it helps!

    0 讨论(0)
  • 2020-12-09 05:09

    if one had no brewed openssl before the answer above (brew reinstall git --with-brewed-curl --with-brewed-openssl) does not work.

    The workflow described here does better:

    $ brew remove git
    $ brew remove curl
    
    $ brew install openssl
    $ brew install --with-openssl curl
    $ brew install --with-brewed-curl --with-brewed-openssl git
    
    0 讨论(0)
  • 2020-12-09 05:11

    If your are using a Virtul machine, then it is a connection problem. To solve this issue, you have to go to VM settings to Bridge the physical connection.

    VMware Player-->Removable Devices-->Network Adapter-->settings

    You will find Network connection and check both

    Bridged: Connected directly to the physical network

    Replicate physical network connection state(if you are using a laptop).

    Check following link for detail:

    https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-826323AD-D014-475D-8909-DFA73B5A3A57.html

    0 讨论(0)
  • 2020-12-09 05:12

    Javabrett's link got me to the answer, it revolves around Yosemite using an incorrect SSL dependency, which Git ends up using.

    Installing Git via homebrew with these flags works:

    brew install git --with-brewed-curl --with-brewed-openssl
    

    Or:

    brew reinstall git --with-brewed-curl --with-brewed-openssl
    
    0 讨论(0)
提交回复
热议问题