Skip to content

Instantly share code, notes, and snippets.

@macedd
Last active September 21, 2021 06:43
Show Gist options
  • Save macedd/aa31eeea26e2ace72022 to your computer and use it in GitHub Desktop.
Save macedd/aa31eeea26e2ace72022 to your computer and use it in GitHub Desktop.
Generate Stats for a Git Repository
# Tools installation
pip install gitinspector
gem install git_stats
# Generate the reports
cd git_proj
git_stats generate
gitinspector -f php,js,less -F html > git_stats/inspector.html
# Generate time-sheets
curl -o /usr/bin/git-timesheet https://raw.githubusercontent.com/leonid-shevtsov/git-timesheet/master/git-timesheet.rb
chmod +x /usr/bin/git-timesheet
git-timesheet --author user@email.com --since 2015-03-01 > git_stats/user.txt
gem install git_time_extractor
git_time_extractor -e 120 -s 4 > git_stats/output_time.csv
@macedd
Copy link
Author

macedd commented Sep 1, 2015

For a quick ref, checkout git shortlog -sn --no-merges

@macedd
Copy link
Author

macedd commented Sep 1, 2015

Should solve general use for stats
https://github.com/hoxu/gitstats

gitstats ./ ./stats

@macedd
Copy link
Author

macedd commented Sep 21, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment