由于本地git仓库和github仓库直接的传递需要ssh加密的,所以必须要生成ssh,下面是具体的操作步骤:
1.打开GIT命令行,输入命令:ssh-keygen -t rsa -C
"youremail@example.com"
2.输入完毕后,一直点击回车代表密语为空,这里演示都回车了
3.查看ssh是否生成,查看路径:C:UsersAdministrator.ssh
4.复制文件id_rsa.pub的内容,登录github(没有账号需要提前注册)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------
参考文章:
https://www.cnblogs.com/horanly/p/6604104.html
https://www.cnblogs.com/ldq2016/p/7418206.html