面向纯小白,本身也是个菜,记录下学习历程顺便也分享给小伙伴们git
git首先第一步就是SSH的安装 github
使用的方法 打开git 输入 cd .ssh(记住有空格)ssh
若是没有则提示: No such file or directory学习
若是有则进入~/.ssh路径下it
若是没有那么进入下一步email
$ ssh-keygen -t rsa -C "XXXX@XXX.com" #我填写的个人git邮箱配置
而后第一行输入名字(能够不填写)file
而后输入两次密码(能够为空)rsa
而后成功 在路径下C:\用户\用户名\.ssh看 那个XXX.pub (能够用notepad++)看密码
而后SSh Key 到GitHub
注册好https://github.com/github
点击那个头像而后选择Settings--选中 "SSH and GPG keys" 进入页面点击 " New SSHkey"
Title 随便填写,Key 填写那个pub的内容
而后添加成功
继续配置帐户
$ git config --global user.name “XXXX” 用户名
$ git config --global user.email “XXXX” 邮箱地址
作完这一切当作功与否
$ ssh -T git@github.com
而后就能够操做了
这个能够一劳永逸作一次就够了