git

Sign up for a GitHub account Sign in All Gists colby / git Created October 10, 2014 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav View git git Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 # add to gitconfig [alias] today = log --since='1am' --author='Colby Olson' --shortstat --oneline yesterday = log --since='yesterday' --until='yesterday' --author='Colby Olson' --shortstat --oneline # Changes made yesterday $ read a b c < <(git yesterday) | awk '/file/{x+=$1; y+=$4; z+=$6};END{print x, y, z}') && echo "$a files changed, $b insertions(+), $c deletions(-)" # Changes made today $ read a b c < <(git today) | awk '/file/{x+=$1; y+=$4; z+=$6...

Linked on 2014-10-10 16:23:58 | Similar Links