could not read Username for 'https://github.com': No error

用idea往github上push代码的时候,突然的不能用了。

报could not read Username for 'https://github.com': No error错误。

原因不明。

解决

1、进入项目目录

2、进入 .git 目录

3、修改.git/config 文件

把github的账号密码直接写死在url中

之后,问题解决。

原文地址:https://www.cnblogs.com/dongxiucai/p/10072368.html