环境:windows10(其它版本应该区别不大)
GIt的搭建
git-gui(有图形化的操作界面,也支持命令行操作)下载: https://git-scm.com/downloads
图形化界面的使用先跳过(可参考网友的 http://www.cnblogs.com/iruxu/p/gitgui.html)~
安装好git-gui之后,打开Git Bash
cd(到根目录)
ssh-keygen -t rsa -C 'Your email address'
然后一路回车,生成ssh的公钥和私钥
ssh-add ~/.ssh/id_rsa
如果出现Could not open a connection to your authentication agent.
就执行:ssh-agent bash
最后把公钥复制到git里面的ssh-key里(查看公钥 cat ../.ssh/id_rsa.pub)