1 进入要上传的项目
git remote add origin git@github.com:yourName/yourRepo.git
yourname:github上的用户名
yourRepo.git:仓库名
2.提交项目:
git add .
or
git add 指定文件
3.写注释(本次提交的介绍)
git commit -m “你的注释”
4.提交到github
git push origin master
5.清除
git remote rm origin