统计修改次数

统计 git 提交记录中,某文件的修改次数:

  1. # 每个记录有多行。1个记录中 Author 只会出现一次。
  2. git log some_file.py|grep Author|wc -l