Git安装与配置

1.http://git-scm.com/download/ 下载Git,Windows安装一路默认即可

Git安装与配置
 

2. 安装之后,配置参数

git config --global user.name "Your Name"
git config --global user.email "[email protected]"
git config --global core.editor "vim"

 

3.生成公钥和私钥

ssh-****** -t rsa -C "[email protected]"

Git安装与配置
 

4.查看公钥和私钥

Git安装与配置

5.登录https://github.com,Add SSH Key

Git安装与配置
 6.测试是否连接成功

ssh [email protected]

Git安装与配置