{"id":22296715,"url":"https://github.com/pescuma/git-stats","last_synced_at":"2026-04-27T12:04:45.432Z","repository":{"id":11866093,"uuid":"14425758","full_name":"pescuma/git-stats","owner":"pescuma","description":"Stats for your git repository","archived":false,"fork":false,"pushed_at":"2015-12-07T17:17:44.000Z","size":25430,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T22:41:20.545Z","etag":null,"topics":["git","java","stats"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pescuma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-15T14:03:56.000Z","updated_at":"2019-05-19T03:56:31.000Z","dependencies_parsed_at":"2022-09-14T21:50:20.935Z","dependency_job_id":null,"html_url":"https://github.com/pescuma/git-stats","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pescuma/git-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pescuma%2Fgit-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pescuma%2Fgit-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pescuma%2Fgit-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pescuma%2Fgit-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pescuma","download_url":"https://codeload.github.com/pescuma/git-stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pescuma%2Fgit-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","java","stats"],"created_at":"2024-12-03T17:47:20.872Z","updated_at":"2026-04-27T12:04:45.414Z","avatar_url":"https://github.com/pescuma.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"git-stats\n=========\n\nStats for your git repository\n\n\n### Running\n\nAdd to path and call `git stats` inside a git repository (`git-stats` also work). No command line options are needed. If you want you can pass the path to the repository as an argument and also `-t X` to set the number of threads to run (by default it's number of cores - 1). _It may take a long time to run on big repositories._\n\nIt will run `git blame` over all the files in the repository and show some nice grouped information. For example, for this repository it shows:\n\n```\nTotal:\n   1995 lines (1611 code, 9 comment, 375 empty) in 13 files in 5 languages in 43 commits by 1 authors from 2013-11 to 2015-04\n\nAuthors:\n   Ricardo Pescuma Domenecci : 100.0% of the lines: 1995 lines (1611 code, 9 comment, 375 empty) in 13 files in 5 languages in 43 commits from 2013-11 to 2015-04\n\nMonths: ▂▂▁▁█\n   2013-11 :  170 lines ( 126 code, 2 comment,  42 empty) in  6 files in 4 languages in  4 commits by 1 authors\n   2013-12 :  174 lines ( 139 code, 0 comment,  35 empty) in  4 files in 3 languages in  3 commits by 1 authors\n   2014-03 :   18 lines (   9 code, 0 comment,   9 empty) in  2 files in 2 languages in  4 commits by 1 authors\n   2015-03 :   18 lines (  16 code, 0 comment,   2 empty) in  3 files in 3 languages in  5 commits by 1 authors\n   2015-04 : 1615 lines (1321 code, 7 comment, 287 empty) in 11 files in 5 languages in 27 commits by 1 authors\n\nLanguages:\n   Java : 1094 lines (858 code, 4 comment, 232 empty) in 9 files in 29 commits by 1 authors from 2013-11 to 2015-04\n   HTML :  723 lines (613 code, 5 comment, 105 empty) in 1 files in  2 commits by 1 authors from 2015-04 to 2015-04\n   Ant  :   89 lines ( 74 code, 0 comment,  15 empty) in 1 files in  5 commits by 1 authors from 2013-11 to 2015-04\n   Text :   55 lines ( 39 code, 0 comment,  16 empty) in 1 files in  7 commits by 1 authors from 2013-11 to 2015-04\n   XML  :   34 lines ( 27 code, 0 comment,   7 empty) in 1 files in  9 commits by 1 authors from 2013-11 to 2015-04\n```\n\n(of course it gets better when you have more people contributing to the repository)\n\n\n### Multiple repositories\n\nYou can use:\n```\ngit stats \u003cpath to repo 1\u003e \u003cpath to repo 2\u003e\n```\n\nIf it takes too long you can process it one at a time:\n```\ngit stats \u003cpath to repo 1\u003e -o 1.csv\ngit stats \u003cpath to repo 2\u003e -o 2.csv\ngit stats 1.csv 2.csv\n```\n\n### Options\n\nAlso, you can fix some common problems:\n   - Ignore some revisions: `git stats 1.csv 2.csv -i 98ad99e -i 123456`\n   - Rename/group authors: `git stats 1.csv 2.csv -a \"jh=John\" -a \"abc=My Pretty Name\"`\n   - Exclude path: `git stats 1.csv 2.csv -ep a/b`\n\nYou can also export to CSV and HTML: `git stats -o a.csv -o a.html -o -`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpescuma%2Fgit-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpescuma%2Fgit-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpescuma%2Fgit-stats/lists"}