基本命令:
git clone ... <克隆项目>
git add ... <添加修改到暂存区>
git commit -m "..." <提交到版本库>
git push <推到远程库>
git log/git reflog <查看日志>
git reset --hard ... <回滚到某一版本>
git status <查看状态>
git diff <对比代码>
git checkout --... <撤销修改>
git rm ... <删除文件>
分支命令:
git checkout -d ... <创建并切换到分支>
git checkout ... <切换分支>
git branch <查看分支>
git merge ... <合并分支到当前分值>
git stash <修改暂存起来>
git stash list <查看暂存列表>
git stash apply ...<回复暂存版本>
git stash drop <删除暂存列表内容>
git stash pop <回复并删除暂存版本>