1.注册github账号。在github官网上注册账号并new repository
2.安装git客户端。
3.配置git。
(1)创建 ssh key ssh-keygen-t rsa -C "your_email@youremail.com" ,后面是邮箱 ,测试ssh -Tgit@github.com
(2)设置user和email 。$ git config --global user.name "your name" $ gitconfig --global user.email "your email"
(3)添加远程地址。git remote add origingit@github.com:yourName/yourRepo.git
4.提交和上传。
(1)提交至本地库$ git add README$ git commit-m "first commit"
(2)上传至云库 git push origin master git commit