GitHub - failed to connect to github 443 windows/

2019-01-02 19:46发布

Q - I intalled git to get the latest version of Angular. When i tried called

git clone https://github.com/angular/angular-phonecat.git

I got failed to connect to github 443 error

I even tried

git clone git://github.com/angular/angular-phonecat.git

That gave me failed to connect no error message.

I am behind my company firewall. I can not see my proxy details when I go to control panel->Internet Options -> connections -> lan setting.IT guys are not sharing proxy information with me. I do not know what to do ??

I finally managed to do it. I will update the procedure that I had taken in order to Just wanted to compile all the steps that I did to get it to work

标签: git github
20条回答
孤独总比滥情好
2楼-- · 2019-01-02 20:15

I got an error when I used

<git config --global http.proxy http://user:password@proxy_addr:port>

The error is that the config file cannot be identified as there is no such file. I changed the command to

<git config --system http.proxy http://user:password@proxy_addr:port>

I am running git on the Windows 7 command prompt.
The above command references the config file in GIT_HOME/etc/gitconfig.
The --global option does not.

查看更多
查无此人
3楼-- · 2019-01-02 20:15

You can also try deleting the remote and adding it again. It worked for me. However you need to setup up tracking information for all branches and other stuff which may not be ideal for large projects.

Basically the steps are :
git remote rm origin git remote add origin
git@github.com:user/repo.git
git push origin master
https://coderwall.com/p/7begkw/fatal-remote-error-you-can-t-push-to-git

查看更多
登录 后发表回答