1.输入
ssh-keygen -t rsa -C '2101419675@qq.com'
2.一路回车, 提示输入文件名和密码都直接回车
3.公钥就生成了,路径为
4.在GitHub或gittree中直接将id_rsa.pub中的内的内容加在sskey中就行
下面是gittree
5.其它
mkdir test
cd test
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/Deven1511/test.git
git push -u origin master
6.sourcetree中添加密钥-教程
7. linux https clone需要密码
git config --global credential.helper store //
// 执行完后第一次需要输入 账号密码