致命:无法读取'https://github.com'的用户名:没有这样的文件或目录 [英] fatal: could not read Username for 'https://github.com': No such file or directory

查看:663
本文介绍了致命:无法读取'https://github.com'的用户名:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Windows上使用GIT Bash时,出现以下问题:我已尝试实施此处提供的接受解决方案:





问题依然存在。添加/删除原点后,我仍然得到相同的错误。

 致命:无法读取'https://github.com'的用户名:没有这样的文件或目录


解决方案

按照以下步骤设置SSH密钥: https://help.github.com/articles/generating-ssh-keys



OR

  git remote add origin https:// {username}:{password} @ github.com / {用户名} /project.git 


I have the following problem when I try to pull code, using GIT Bash on windows

I already tried to implement the accepted solution provided here:

but the problem persists. After adding/removing origin I still get the same error.

fatal: could not read Username for 'https://github.com': No such file or directory

解决方案

Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys

OR

git remote add origin https://{username}:{password}@github.com/{username}/project.git

这篇关于致命:无法读取'https://github.com'的用户名:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆