Am getting the following error while trying to pull/push or create new-clone
error: couldn't connect to host while accessing https://github.com/user/pack.git/info/refs fatal: HTTP request failed
when i googled, people suggested to setup http_proxy.. but i don't understand it or i don't know to setup it.. am totally stuck up with it..
i don't know how to overcome these issues..
any help would be appreciated..
NB: note that i was able to use git before couple of days.. in the last couple of days it has been screwed up.. please help..
This can be caused by incorrect proxy settings, or error typing names, make sure you're using the exact URL of whatever you're trying to do. Try these commands. Also set user- name and user-email. Hope this will solve your error.
The Git “fatal: Could not read from remote repository” error occurs when there is an issue authenticating with a Git repository. This is common if you have incorrectly set up SSH authentication. To solve this error, make sure your SSH key is in your keychain and you connecting to a repository using the correct URL.
Go to Window -> Preferences -> Team -> Git -> Configuration, click 'Repository Settings' tab and paste your GIT ssh URI to remote. origin. url.
git config --global --unset http.proxy git config --global --unset https.proxy
works for me
This happened to me on my Vagrant VirtualBox VM running Ubuntu 12.04. The vagrant instance had been up for several days. I restarted the VM (vagrant reload
), ssh'd back in, and it worked.
What's the cause? Not sure. Someone else can speculate. However, I always like to reboot three times just to be sure ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With