Git之安装配置

git安装好以后,需要进行全局配置:

1.git config --global user.name "your username"   【设置用户名,你的github用户名】

2.git config --global user.email    "your email"  【设置邮箱,你的github注册邮箱】

3.生成公钥:

 ssh -keygen -t rsa -C "your email";

4.生成公钥的目录一般在:C:Usersadmin.ssh目录下的id_rsa.pub文件

5.将公钥设置到GitHub中

  在首页的settings中的SSH AND GPG keys中,添加 “new SSH key”

原文地址:https://www.cnblogs.com/wqk66/p/10919746.html