https://github.com/IonicaBizau/git-stats and https://github.com/IonicaBizau/git-stats-importer are two nice tools to have a local git statistics including GitHub-like contributions calendars.
To import all the history:
git-stats-importer -e $(git log --all --format='%cE' | sort -u | tr "\n" ",")