1.仓库创建
github上创建一个仓库
git clone 仓库地址
2.代码上传
git add .
git commit -m '20180604'
git pull # 先拉后推
git push
3.push前删除commit的文件
git status
git rm --cached 文件名 (删除不用的)
4.回滚上一版本
git log
git reset -–hard id (恢复上一版本)
git push -f (旧版本强制提交覆盖) # 危险动作,做好备份
5.eclipse
先pull,有冲突解决冲突,后push