本人是Windows操作系统,所有操作均在Windows下完成;
下载Git for Windows客户端https://git-scm.com/download/win
安装完成后打开git bash;
全局配置
- 配置名称
git config --gloab user.name "Name"
- 配置邮箱
git config --gloab user.email "your email"
生成RSA密钥
ssh-keygen -t rsa -C "your email"
命令回车后提示是否保存文件到目录,直接回车确认,然后输入两次密码,RSA秘钥创建完成,在系统的/User/YourPCName下有一个.ssh文件夹,打开id_rsa.pub,复制全部内容配置到相应的平台。