文章目录
一、Git安装
Git官网下载地址:https://git-scm.com/downloads,一路next即可安装完成。
二、创建密钥
2.1.设置你的用户名称与邮件地址
$ git config --global user.name "your name"
$ git config --global user.email "your email"
注意:此用户名和邮箱是Git提交代码时用来显示你身份和联系方式的,并不是GitHub用户名和邮箱
2.2.生成本地密钥对
$ ssh-keygen -t rsa -C "your_email@youremail.com"
生成的密钥在这里:C:\Users\Administrator.ssh