Bootstrap

ssh: Could not resolve hostname ssh.github.com: Temporary failure in name resolutionfatal: Could no

报错

执行git push origin dev,重试多次都是报错:

ssh: Could not resolve hostname ssh.github.com: Temporary failure in name resolution fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

诊断

ping: www.qq.com: Temporary failure in name resolution

修改配置

sudo vi /etc/resolv.conf

# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 8.8.8.8

重启

 sudo systemctl restart systemd-resolved.service

再执行即可成功!

;