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

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

github账号添加了2个ssh keys,公司上电脑能push成功
但自己电脑上配置后通过ssh -T git@github.com 后看到:You’ve successfully authenticated, but GitHub does not provide shell access 表示已成功连上github
但是git push时提示:fatal: could not read Username for 'https://github.com': No such file or directory
via:http://wuyuans.com/2012/05/github-simple-tutorial/


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

你应该写「git@github.com:xxx/yyy」。使用 git remote set-url origin xxx 来修改成正确的地址。或者直接编辑 .git/config 文件。


这种现象是msysGit 1.8.5的bug,如果你在用这个,还请安装1.8.4版本。前天晚上我还遇到这个问题……

【热门文章】
【热门文章】