1) 命令行方式在github创建仓库
curl -u 'github用户名'https://api.github.com/user/repos -d '{"name":"你想起的项目名字,如:vux1"}'
把github用户名替换成自己的github账号,运行命令后输入github密码
2) 创建项目的本地git仓库
在项目目录中执行 git init
3) 配置git的远程仓库地址
git remote addorigin https://github.com/github用户名/vux1
4) 添加文件
git add .
5) 提交本地仓库
git commit -m "init"
6) 提交到 github 远程仓库
git push origin master