s1: 进入本地项目的目录
(如:我的项目是ranx,在目录F:\projects下面,进入F:\projects\ranx)
s2: 右键->Git Bash Here (本地要装git)--> 输入命令: git init 把这个文件夹变成Git可管理的仓库
s3: 输入命令 git add . (注意有个 .,add和.之间是有空格的) 把该目录下的所有文件添加到仓库
s4: 输入命令 git commit -m "first commit" 把项目提交到本地仓库
==================================================================================
s5: 打开Github(https://github.com),在Github上创建好Git仓库(如:ranx)
s6: 与本地仓库进行关联,输入命令: git remote add origin https://github.com/xxxx/ranx.git (这个地址是新建ranx的github上的地址)
s7: 把本地库的所有内容推送到远程仓库: git push -u origin master
s8: 重新刷新你的Github页面进入刚才新建的那个仓库里面就会发现项目已经成功上传了