关于git(一)=>fatal: HttpRequestException encountered

由于Github 禁用了TLS v1.0 and v1.1,须更新Windows的git凭证管理器。

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.14.0

点击下载安装 GCMW-1.14.0.exe ,问题就解决了。

 

附加将本地项目上传到Github的流程命令

1、选择要上传的项目然后右击选择Git Bash Here

 

2、在命令行中输入git init把这个文件夹变成Git可管理的仓库

3、输入 git add . (注意这个".",是有空格的,"."代表这个文件夹下的目录全部都提交。也可以通过 "git add 文件名"  把指定的文件添加到缓存区

4、输入 git commit -m "这里面写你的注释" ,把文件提交的本地仓库

5、输入 git remote add origin https://自己的仓库url地址 , 将本地的仓库关联到github上,

仓库url地址如图:

6、输入  git push -u origin master ,上传到github仓库。

 

posted @ 2019-02-13 16:07  Alyson.fu  阅读(1470)  评论(0编辑  收藏  举报