📊 The statistical analysis tool for git repositories
Python
2,512
650 commits
updated Oct 7, 2026

Gitinspector is a statistical analysis tool for git repositories. The default analysis shows general statistics per author, which can be complemented with a timeline analysis that shows the workload and activity of each author. Under normal operation, it filters the results to only show statistics about a number of given extensions and by default only includes source files in the statistical analysis.
This tool was originally written to help fetch repository statistics from student projects in the course Object-oriented Programming Project (TDA367/DIT211) at Chalmers University of Technology and Gothenburg University.
Today, gitinspector is used as a grading aid by universities worldwide.
A full Documentation of the usage and available options of gitinspector is available on the wiki. For help on the most common questions, please refer to the FAQ document.
Below are some example outputs for a number of famous open source projects, as well as for gitinspector itself. All the statistics were generated using the "-HTlrm" flags.
| Project name | ||||
|---|---|---|---|---|
| Django | HTML | HTML Embedded | Plain Text | XML |
| Gitinspector | HTML | HTML Embedded | Plain Text | XML |
| JQuery | HTML | HTML Embedded | Plain Text | XML |
| Pango | HTML | HTML Embedded | Plain Text | XML |
We need translations for gitinspector! If you are a gitinspector user, feel willing to help and have good language skills in any unsupported language we urge you to contact us. We also happily accept code patches. Please refer to Contributing for more information on how to contribute to the project.
The Debian packages offered with releases of gitinspector are unofficial and very simple packages generated with stdeb. Christian Kastner is maintaining the official Debian packages. You can check the current status on the Debian Package Tracker. Consequently, there are official packages for many Debian based distributions installable via apt-get.
An npm package is provided for convenience as well. To install it globally, execute npm i -g gitinspector.
A Dockerfile is included for those who would rather not install gitinspector at all. Build the image from the root of the sources and mount the repository to analyze on /repo:
docker build -t gitinspector .
docker run --rm -v "$PWD:/repo" gitinspector -f py -T
GitInspectorGUI started out as an extension of gitinspector and has since been rewritten from scratch. It offers a graphical interface next to the command line, HTML and Excel output with blame information per file, and stand-alone apps for Windows and macOS. Its documentation lives at edu-boost.gitlab.io/gitinspectorgui.
gitinspector is licensed under the GNU GPL v3. The gitinspector logo is partly based on the git logo; based on the work of Jason Long. The logo is licensed under the Creative Commons Attribution 3.0 Unported License.
Overall
Maintained
Code review
npm
Latest release
Releases this year
69 followers · starred Nov 2016
418 followers · starred Feb 2025
422 followers · starred Jul 2016
582 followers · starred May 2025
📊 The statistical analysis tool for git repositories
Python
2,512
650 commits
updated Oct 7, 2026

Gitinspector is a statistical analysis tool for git repositories. The default analysis shows general statistics per author, which can be complemented with a timeline analysis that shows the workload and activity of each author. Under normal operation, it filters the results to only show statistics about a number of given extensions and by default only includes source files in the statistical analysis.
This tool was originally written to help fetch repository statistics from student projects in the course Object-oriented Programming Project (TDA367/DIT211) at Chalmers University of Technology and Gothenburg University.
Today, gitinspector is used as a grading aid by universities worldwide.
A full Documentation of the usage and available options of gitinspector is available on the wiki. For help on the most common questions, please refer to the FAQ document.
Below are some example outputs for a number of famous open source projects, as well as for gitinspector itself. All the statistics were generated using the "-HTlrm" flags.
| Project name | ||||
|---|---|---|---|---|
| Django | HTML | HTML Embedded | Plain Text | XML |
| Gitinspector | HTML | HTML Embedded | Plain Text | XML |
| JQuery | HTML | HTML Embedded | Plain Text | XML |
| Pango | HTML | HTML Embedded | Plain Text | XML |
We need translations for gitinspector! If you are a gitinspector user, feel willing to help and have good language skills in any unsupported language we urge you to contact us. We also happily accept code patches. Please refer to Contributing for more information on how to contribute to the project.
The Debian packages offered with releases of gitinspector are unofficial and very simple packages generated with stdeb. Christian Kastner is maintaining the official Debian packages. You can check the current status on the Debian Package Tracker. Consequently, there are official packages for many Debian based distributions installable via apt-get.
An npm package is provided for convenience as well. To install it globally, execute npm i -g gitinspector.
A Dockerfile is included for those who would rather not install gitinspector at all. Build the image from the root of the sources and mount the repository to analyze on /repo:
docker build -t gitinspector .
docker run --rm -v "$PWD:/repo" gitinspector -f py -T
GitInspectorGUI started out as an extension of gitinspector and has since been rewritten from scratch. It offers a graphical interface next to the command line, HTML and Excel output with blame information per file, and stand-alone apps for Windows and macOS. Its documentation lives at edu-boost.gitlab.io/gitinspectorgui.
gitinspector is licensed under the GNU GPL v3. The gitinspector logo is partly based on the git logo; based on the work of Jason Long. The logo is licensed under the Creative Commons Attribution 3.0 Unported License.
Overall
Maintained
Code review
npm
Latest release
Releases this year
69 followers · starred Nov 2016
418 followers · starred Feb 2025
422 followers · starred Jul 2016
582 followers · starred May 2025