git log 查看git提交日志
git log --author=“xxx” 查看某个人的提交日志
git blame ./src/xxx.c 查看某个文件的修改日志
git blame -L 2314,2314 ./src/xxx.c 查看某个文件2314行的修改日志
git branch -a 查看当前所有分支
git branch xxxxx 基于当前分支创建新分支xxxxx
git branch -D xxxx 删除xxxx分支(删除分支时需要切换到其他分支再删除)
git add 多加了文件之后撤销
git reset HEAD 文件路径
根据时间过滤git log
git log --since=<起始日期> --until=<结束日期>
根据关键字过滤git log
git log --grep="关键字"