标签:
1.首先下载sourectree,进行安装
2.安装成功之后,获取sshkey,在sourectree 界面找到输入命令号的界面
3.设置你的用户名和邮箱
$ git config --global user.name "zhangsan"
$ git config --global user.email "189234567520@163.com"
4.生成SSH密钥过程:
1.查看是否已经有了ssh密钥:cd ~/.ssh
如果没有密钥则不会有此文件夹,有则备份删除
2.生存密钥:
$ ssh-keygen -t rsa -c "189234567520@163.com "
按3个回车,密码为空。
Your identification has been saved in /home/tekkub/.ssh/id_rsa.
Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.
The key fingerprint is:
………………
标签:
原文地址:http://www.cnblogs.com/qstext/p/4519341.html