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

将项目的.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代码输入用户名密码,也可以在链接中带入密码

https://username:password@gitee.com/username/projectNamet.git

如果密码中有@特殊字符 可以使用%40转义代替

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐