Skip to content

Instantly share code, notes, and snippets.

@EgorPopovPP
Forked from xeoncross/gitstats.sh
Created July 20, 2021 21:49
Show Gist options
  • Select an option

  • Save EgorPopovPP/ee7f5097c50592f967ed65c8a7b9e33b to your computer and use it in GitHub Desktop.

Select an option

Save EgorPopovPP/ee7f5097c50592f967ed65c8a7b9e33b to your computer and use it in GitHub Desktop.

Revisions

  1. @xeoncross xeoncross created this gist Nov 5, 2012.
    4 changes: 4 additions & 0 deletions gitstats.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # Run this in the project repo from the command-line
    # http://stackoverflow.com/a/4593065/99923

    git log --shortstat --author "Xeoncross" --since "2 weeks ago" --until "1 week ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}'