idea提交代码报错:Ssh: Could not resolve hostname gitlab.公司git地址.com: Name or service not known

今天又踩了一个坑:

idea提交代码时抛错:

17:20	Push failed
			Ssh: Could not resolve hostname gitlab.公司git地址.com: Name or service not known
			Could not read from remote repository.
			
			Please make sure you have the correct access rights
			and the repository exists.

 

idea提交代码报错:Ssh: Could not resolve hostname gitlab.公司git地址.com: Name or service not known_第1张图片

 测试:ping 公司git地址

结果:成功了。。。。。。。。。。。。。。。

Microsoft Windows [版本 10.0.18363.720]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\DELL>ping gitlab.公司git地址.com

正在 Ping gitlab.btpoc.com [62.234.197.159] 具有 32 字节的数据:
来自 62.234.197.159 的回复: 字节=32 时间=58ms TTL=50
来自 62.234.197.159 的回复: 字节=32 时间=43ms TTL=50
来自 62.234.197.159 的回复: 字节=32 时间=45ms TTL=50
来自 62.234.197.159 的回复: 字节=32 时间=42ms TTL=50

62.234.197.159 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 42ms,最长 = 58ms,平均 = 47ms

C:\Users\DELL>

再次推送代码竟然成功了。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

原因:链接不稳定

你可能感兴趣的:(java)