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
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://.
Now, I am able to push with my changes to origin without any problem.
Hope it helps!
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
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
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