之前在拉公司代码的时候,不小心把项目链接copy成http的链接了,在提交代码的时候,总是包下面这个错误:

fatal: could not read Username for http:XXXXXXX: Device not configured。

     大致意思就是说,http:XXXX这个服务器不能找到git设置的这个用户,为什么回这杨呢,查了很多资料,大概意思就是说,ssh权限的问题,要把http 方式改成ssh,要改这个 最暴利的方式就是改本项目的.git目录下的config 配置文件啦。

gitlab fatal: could not read Username for : Device not configured把remote 下的URL换成本项目的ssh链接就好了。

网上提供了很多方法,大家可以试一下。

相关文章:

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