Skip to content

Instantly share code, notes, and snippets.

@IanLee1521
Created July 27, 2017 03:37
Show Gist options
  • Save IanLee1521/fead3d955930a36ac9d53d6e1fbd4722 to your computer and use it in GitHub Desktop.
Save IanLee1521/fead3d955930a36ac9d53d6e1fbd4722 to your computer and use it in GitHub Desktop.
Get pshtt commit history stats
#! /bin/bash
git clone git@github.com:dhs-ncats/pshtt.git && cd pshtt
git checkout 00ff246f40acbea185d478d838c7fcd6652b9aa8
git log --pretty=oneline | wc -l
# 292
git log --numstat --pretty="%H"| awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
# +6944, -5163
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment