bitbucket can't pull/push from repository

前端 未结 20 1733
鱼传尺愫
鱼传尺愫 2021-02-06 23:04

So basically I have a server where I have bitbucket git repository set up. I\'ve been using it for months and now out of the blue sky when I try to pull I get the following erro

相关标签:
20条回答
  • 2021-02-06 23:26

    For linux - restarting the network may help:

    sudo service networking restart
    
    0 讨论(0)
  • 2021-02-06 23:27

    As sreekumar said, the idea is to preset the DNS and it is detailed here

    Changing DNS server settings on Windows 7

    1. Go to the Control Panel.
    2. Click Network and Internet > Network and Sharing Center > Change adapter settings.
    3. Select the connection for which you want to configure Google Public DNS. For example:
      • To change the settings for an Ethernet connection, right-click Local Area Connection > Properties.
      • To change the settings for a wireless connection, right-click Wireless Network Connection > Properties.
      • If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
    4. Select the Networking tab. Under This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and then click Properties.
    5. Click Advanced and select the DNS tab. If there are any DNS server IP addresses listed there, write them down for future reference, and remove them from this window.
    6. Click OK.
    7. Select Use the following DNS server addresses. If there are any IP addresses listed in the Preferred DNS server or Alternate DNS server, write them down for future reference.
    8. Replace those addresses with the IP addresses of the Google DNS servers:
      • For IPv4: 8.8.8.8 and/or 8.8.4.4.
      • For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844.
      • For IPv6-only: you can use Google Public DNS64 instead of the IPv6 addresses in the previous point.
    9. Restart the connection you selected in step 3.
    10. Test that your setup is working correctly
    11. Repeat the procedure for additional network connections you want to change.
    0 讨论(0)
  • 2021-02-06 23:28

    I am using git through Linux Subsystem on Windows 10, and only the answer from @Saviour Dela above, worked for me. Process I followed is as follows:

    1. Get the IP to bitbucket, by ping bitbucket from Windows command prompt.
    2. Add the IP to the /etc/hosts file.
    0 讨论(0)
  • 2021-02-06 23:29

    The error message suggests a DNS or network issue. If this is a linux box you could investigate the output of a few networking commands such as ifconfig, host bitbucket.org, and follow some guides on troubleshooting DNS issues for your specific environment.

    0 讨论(0)
  • 2021-02-06 23:30

    This worked for me. I had added google DNS server details in NetworkPreference.

    8.8.8.8,8.8.4.4

    0 讨论(0)
  • 2021-02-06 23:30

    I had the same problem until I turned off my VPN. I am not sure of the reason though I will be happy if someone explains.

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