1、报错信息: could not read Username for ‘https://github.com’: terminal prompts disabled
解决方法:
打开项目所在的目录下.git文件夹,打开config文件。(注:git文件夹默认隐藏)
修改[remote “origin”]下的
url = https://github.com/hddevteam/ServerMonitor-for-UWP.git
为
url = https://自己的用户名:自己的密码@github.com/hddevteam/ServerMonitor-for-UWP.git
只需加用户名和密码 不用改其他的
注:此方法只适用于在vs上推送到自己的账户上 如果推送到别人的账户是推不上去的
解决方法引用自:https://blog.csdn.net/dw33xn/article/details/79951714?utm_source=blogxgwz9