在ubuntu上配置了gitLab,在custom_hooks自定义钩子中,post-receive中,对应GitLab中的私库,clone等都需要验证(http方式需要输入用户名和密码,SSH的方式这里先不讨论)

,出现了could not read Username for 'ip地址':No such device or address

原因

.git目录下的config文件中没有用户身份信息

解决方法:

在请求串中加入身份信息即可,格式为:

https://[userName]:[password]@github.com/[username]/project.git

 GitLab could not read Username for 'ip地址':No such device or address

参考:http://blog.csdn.net/ybygjy/article/details/22409739

相关文章:

  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2022-01-05
  • 2021-09-09
  • 2022-01-24
  • 2021-07-15
  • 2022-01-23
  • 2021-10-23
相关资源
相似解决方案