- 下载安装git
- github新建仓库
- 本地新建文件夹GitCode,右键open git bash here
- 在窗口输入:git init
- 在GitCode文件夹下放入你要上传的代码
- 接着在窗口输入:
git add .
git commit -m "first commit"
- 第一次上传配置邮箱和用户名
git config --global user.email "邮箱"
git config --global user.name "名字"
- git remote add origin url
- git push -u origin master