提交到csdn的git时候,服务器提示ssh: Could not resolve hostname code.csdn.net: Name or service not known错误,
应该是没有解析到code.csdn.net域名,解决方法有2个:
1.修改host文件,linux下路径为etc/hosts
打开后如图所示
只需要添加域名对应的ip地址即可
2、临时性的解决方法,将push或者pull指令的git地址中的code.csdn.net替换为223.6.248.58即可