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

在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

 

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

posted @ 2017-08-23 16:03  懒猫的新窝  阅读(9286)  评论(0编辑  收藏  举报