You know those cool graphs and statistics you can get for a repository on github? The things is that (unfortunately) not all git repositories are hosted on github for various reasons. This is the tool for rendering graphs for your repository that can be hosted anywhere, and it looks great.
Graphs that are included:
- Commits by date
- Commits by hour of day
- Commits by day of week
- Commits by contributor
- PHP 5.3
- Git
Start by clone this repository and setup your web server
Install dependencies using Composer, e.g. php composer.phar install
Clone the repository you want to graph in the root of the folder for git-pretty-stats. Using folder name repository is recommended since it's the default path, e.g. git clone <repository-url> repository
To manually set the repository path, copy
config.example.php
toconfig.php
. Then change the value ofrepositoryPath
in the config file relative to the folder where your desired git repository is located.
Now go to your web browser and go to the URL where you've set everything up.
Disclaimer: the tool has been tested to work on repositories up to 10 000 commits. If your repository have a higher number of commits than that you might experience issues.
- Cache for larger repositories
- Handle multiple repositories
- Additions / deletions for contributors