git配置
- Git安装完之后,需做最后一步配置。打开git bash,分别执行以下两句命令
git config --global user.name “用户名”
git config --global user.email “邮箱”
- 生成SSH密钥
ssh-keygen -t rsa -C "你的邮箱"
- 查看密钥
cat ~/.ssh/id_rsa.pub
git config --global user.name “用户名”
git config --global user.email “邮箱”
ssh-keygen -t rsa -C "你的邮箱"
cat ~/.ssh/id_rsa.pub