一、新建库
输入链接: github(www.github.com),点击new新增仓库
填写信息
复制仓库地址
二、上传代码
右键需要上传的文件夹,点击Git Bash Here
新建git.文件
git init
输入git add .添加文件到项目
$ git add .
输入账号密码
$ git config --global user.email"邮箱"
$ git config --global user.name"名字"
链接远程库地址 https://github.com/你的(username)/+仓库名称.git
$ git remote add origin https://github.com/你的(username)/+仓库名称.git
//完成链接
最后推送项目
$ git push origin master
#数据开始上传
刷新github项目查看成功
三、本地修改上传
与前面几步一样,只是代码写成
$ git pull origin master