1.在github上创建仓库
2.git clone github上创建仓库的地址
3.项目文件里就会增加一个你在github上创建的项目名称,进入该项目文件夹
4.git add .
5.git commit -m "提交信息"
6.git push -u origin master
github上传本地项目
原文:https://www.cnblogs.com/qjb2404/p/12110047.html