1、安装
2、配置
1、Win+R,cmd
git config 查看是否安装成功
git config --global user.name "yourName"
git config --global user.email "yourEmail"
git config --global user.password "yourPwd"
上面的password是gitee的登录密码
2、生成自己的私钥和公钥
ssh-keygen -t rsa -C "yourEmail"
3、工作的私钥配置
上面生成的私钥和公钥,在C盘的用户目录里的.ssh目录中。
工作的私钥需要配置。
为了工作的私钥不和自己生成的私钥冲突,可以分别给它们重命名,如:id_rsa_mine、id_rsa_work。
可以在.ssh文件夹中新建一个文件夹,用来存放重命名后的密钥。
需要使用哪个密钥,就将密钥复制到.ssh文件夹里,改名为id_rsa和id_rsa.pub。