//初始化
git init
//添加文件到缓存区
git add .
//提交文件到本地仓库
git commit -m ""
//本地仓库与远程仓库连接,添加
git remote add <origin> http://...........
//下拉文件
git pull <origin> <分支>
//创建分支
git branch <xxx>
//上传文件到分支
git push <origin> <branch_name>
//查看历史版本
git log --pretty=oneline
//操作错误后悔药,
git reset --hard回到上次commit的版本
(master | REBASE !/?)解决方法:git rebase --abort