主题
bash
git log # 显示从最近到最远的提交日志
git log --pretty=oneline # 只会显示提交的commit id 和对应的注释
git reset --hard commit_id # hard选项,表示彻底将工作区、暂存区和版本库记录恢复到指定的版本库
git gc --prune=now #清理优化本地版本库bash
git config --global core.autocrlf false #提交检出均不转换
git config --global core.safecrlf false #允许提交包含混合换行符的文件