某天拉代码时突然提示Update failed ssh: connect to host Connection

之前一直用得好好的

查资料后得知可能是git服务端的地址变更了的问题

git@172.30.81.88:hao.wu/dm_manager.git

原本使用ssh协议(默认22端口)克隆,拉代码,可能服务端换了端口映射,导致失败

解决方案:改为http协议使用git

git remote set-url origin http://172.30.81.88:81/xxx/xxx.git

浪费了半天

相关文章:

  • 2021-07-11
  • 2022-01-08
  • 2021-09-06
  • 2021-12-04
  • 2021-12-18
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2021-11-15
  • 2021-05-17
  • 2022-12-23
  • 2021-07-27
  • 2021-08-09
  • 2021-04-29
相关资源
相似解决方案