git出现fatal: could not read Username for ‘https://git.xxx.com‘: Device not configured

将项目的.git/config的remote url 改成https://username@[git地址]

例子:改前:http://[git地址]  例子:https://gitee.com/username/projectNamet.git

改后:http://username@[git地址]  例子:https://username@gitee.com/username/projectNamet.git

然后push代码输入用户名密码

posted @ 2022-04-14 18:51  24601  阅读(1458)  评论(0编辑  收藏  举报