一、问题
1、场景:上传项目的时候遇到一个错误提醒:
fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
解决方案:
在你要上传的那个项目里面点击查看隐藏文件.git 然后打开config文件,把里面的url的格式改成url = https://{用户名}:{密码}@github.com/{仓库}/tata.git
即在中间加上:
{我的用户名}:{密码}@
然后保存退出,再进行上传即可。