引用:Git详细使用
首先下载好Git
git config --global user.name "your name here"
git config --global user.email "your email here"
git init
git add . //这个操作是把所有文件添加到暂存区中
git commit -m "提交信息"
下面把项目上传到你的github中
git clone 你的仓库地址
git add .
git commit -m "提交信息"
git push -u origin master //(注:此操作目的是把本地仓库push到github上面,此步骤需要你输入帐号和密码)