Failed to connect to bitbucket.org port 443: Network is unreachable

前端 未结 17 859
梦如初夏
梦如初夏 2020-12-05 14:50

I am getting issue while pushing code.

git push origin master

fatal: unable to access \'https://xxxxxxxxxx@bitbucket.org/xxxxxx/xxxxxx.git/\': 
Failed to co         


        
相关标签:
17条回答
  • 2020-12-05 15:09

    This worked for me. I ran this below command

    ping -n 10 bitbucket.org
    

    And then sync from visual studio Team explorer. Then it worked

    0 讨论(0)
  • 2020-12-05 15:10

    Suggestion 1: Just remove your origin and set the origin again, then try to push/pull. Hopefully, it will work.

     git remote -v
     git remote remove origin
     git remote add origin https://habibus@bitbucket.org/softbd/oss-project.git 
    

    Suggestion 2: Remove those of lines from Windows/System32/drivers/etc/hosts if any one of these lines is available.

     104.192.143.1 bitbucket.org
     104.192.143.2 bitbucket.org
     18.205.93.0 bitbucket.org
    

    Suggestion 3: Change the network connection/provider. Sometimes your network provider causes this kind of issue.

    Suggestion 4: Check firewall settings. Sometimes it was the issue for showing this kind of error.

    Suggestion 5: Check your git version and then run the following command to upgrade.

     sudo add-apt-repository ppa:git-core/ppa
     sudo apt-get update
     sudo apt-get install git
    
    0 讨论(0)
  • 2020-12-05 15:11

    Check firewall settings. This was the issue in my case.

    0 讨论(0)
  • 2020-12-05 15:12

    switch the network provider. Some times your network provider causes this kind of issue.

    0 讨论(0)
  • 2020-12-05 15:13

    this is crazy ,after removing 104.192.143.2 bitbucket.org from /etc/hosts it started working for me

    0 讨论(0)
  • 2020-12-05 15:13

    so i was having the same problem where neither i was able to load bitbucket in browser or push pull clone bitbucket from terminal i followed discussion. where in my hosts file had 104.192.143.3 bitbucket.orgwhich was added when i used bit bucket for first time for another project .

    so thought of removing it from hosts file , it started working again its bit strange community has to come up with the reason for this

    0 讨论(0)
提交回复
热议问题