〖Linux〗git push orgin master不能解析域名的解決方法

錯誤信息:git

  $ git push origin masterssh

  ssh: Could not resolve hostname bitbucket.org: Name or service not known
  fatal: Could not read from remote repository.spa

  Please make sure you have the correct access rights
  and the repository exists.code

解決方法:server

  $  vi /etc/resolv.conf # 修改成blog

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 114.114.114.114 8.8.8.8

  114.114.114.114 是騰訊DNS Server, 8.8.8.8 是Google DNS Server。rem

相關文章
相關標籤/搜索