开发环境
Git
日志相关
自定义日志格式

git log

format 定制显示的记录格式

# --pretty=format 列出了常用的格式占位符写法及其代表的意义
git log --pretty=format:"%h - %an, %ar : %s"

image.png

2、--graph 添加了一些ASCII字符串来形象地展示你的分支、合并历史:

git log --pretty=format:"%h - %an, %ar : %s" --graph

image.png

3、commit数量

git log --pretty=%aN | sort | uniq -c | sort -k1 -n -r | head -n 10

image.png