git配置

git配置

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