github上传项目导致gitbash报错的问题

刚刚上传blog的时候,git bash一直报错,主要以下两个错误:
1、Run config : Please tell me who you are
2、fatal: HttpRequestException encountered

报错1解决方案

原因:没有认证自己的名字和邮箱
解决方案1:

1
2
git config --global user.email "[email protected]"
git config --global user.name "Your Name"

解决方案2:
在项目文件夹下找到.git文件夹,然后用nodepad++打开里面的config文件,添加如下代码:

1
2
3
[user]
name = XXX(自己的名称)
email = XXXX(邮箱)

报错2解决方案

原因:Github 禁用了TLS v1.0 and v1.1,必须更新Windows的git凭证管理器,才行。
解决方案:
下载
点击下载安装 GCMW-1.14.0.exe ,问题就解决了。