1 # 初始化
2 git init
3
4 # 添加当前目录下的所有文件到仓库
5 git add .
6
7 # 本次上传的备注说明
8 git commit -m "fisrt commit"
9
10 # 将本地仓库关联到你的 git 地址 gituser/project 改为你自己的信息
11 git remote add origin https://github.com/gituser/project.git
12
13 # 拉取内容
14 git pull origin master
15
16 # 上传代码到 github
17 git push -u origin master