How to fix this issue with git push?

43 views Asked by At

I faced this issue via trying to push my local repository to my GitHub account.

Then I got this error message.

fatal: unable to access 'https://github.com/username/example.git/': Failed to connect to github.com port 443 after 21151 ms: Couldn't connect to server

I tried it several times.

2

There are 2 answers

0
Asiri Pramodaya On

This can be happened due to your proxy settings. I changed my network to my mobile network from our university Wi-Fi network. Then it worked! In here the issue was some files couldn't be uploaded via our university Wi-Fi network due to their proxy settings.

1
Juan_m_2 On

You are probably having connectivity issues with https://github.com/ are you able to open it in your web browser?