登录Github
GitHub官网:https://github.com/
新建代码仓
下载代码
1> 下载安装git
git官网:Git
2> 右键打开git bash
3> 生成公私钥
ssh-keygen -t rsa
一路回车即可,命令执行完成在~/.ssh目录下会生成一对公私钥:
4> 查看并拷贝公钥
5> 将拷贝的公钥添加到GitHub配置中
6> 查看ssh配置是否正常
7> 查看GitHub仓库地址
8> 下载代码
git clone https://github.com/ychaoyeah/SuperYang.git
9> 配置contributor信息(第一次提交代码时需要)
git config --global user.email "xxx@example.com"
git config --global user.name "xxx"