关联github
- 先查看用户目录下是否有.ssh文件。
ssh-keygen -t rsa -C "youremail@example.com"
一路回车
- 登录github,点击setting
点击ssh
点击new ssh key
- 将.ssh目录下的ir_rsa.pub中公钥复制进去
- 添加成功
添加库
- 登录github。点击 new
- 添加库
- 创建本地仓库
- 关联本地仓库
在这里出现了一点问题
我先将问题列出来
原因是shell_learning这个目录是空的我们不能提交空目录
所以
最后每次添加新的内容,都可以在
git add
git commit
后加上
git push提交代码