一、项目背景
打比赛,多个人合作,选择github,顺便了解下git的代码操作。
二、步骤
2.1 新建仓库

2.2 打开你要上传到库的项目

2.2 选择 Git Bash Here
输入指令
git init


2.3 查找github的仓库

2.2 将文件放入暂缓区
git add .

2.3填写说明描述
git commit -m '说明'

2.4 绑定仓库
git remote add origin https://gitee.com/仓库里面的

2.7 选择分支
$ git pull --rebase origin 选择分支

2.8 成功

小知识:
pill:是合并差异
push: 直接覆盖