0

I am using git from last few months on ubuntu and it was working fine. But now suddenly it stopped working. I can not pull / push code and get below error

fatal: unable to access 'git url'
Failed to connect to bitbucket.org port 443: No route to host

I tried to make new clone. but same error. Then I tried on another system it works fine. Clone / pull / push works fine on other system but not on mine.

hrishi
  • 1,610
  • 6
  • 26
  • 43

1 Answers1

1

I got same issue.

I tried to update git by ppa, Reset .gitconfig,i checked github repo is getting clone but not bitbucket, i unset http and https proxy, restarted my network services(type in terminal - 'my network services'), changed the network that my laptop was connected. But none of this work for me.

i got fixed by adding below line to hosts(/etc/hosts) file

138.197.154.33 bitbucket.org

Another solutions i didn't tried are

using proxy for cloning git, Connecting to Bitbucket using ssh through proxy.

This solution will also work for the below error:

Try first git push -u origin master
Then git pull origin master
Saravanan Nandhan
  • 579
  • 10
  • 19