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/

github

天神放逐者 11 years, 6 months ago

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 文件。

利比灵.海顿 answered 11 years, 6 months ago

Your Answer