Show HN: Contribution Graph as a Git Command
github.com
github.com
A while ago I saw a CLI to display the GitHub contribution graph in a console, so I came up with the idea of a custom git command that made the exact same graph but based on the current repository.
If you like it or have any feedback about the tool itself and its code, just leave a comment. Thank you for your attention :)
Overall I dig it, nice job!
In order to get this to work on macOS, I needed to use Homebrew bash (5.1 instead of macOS' native 3.2) and the GNU date utility from Homebrew's coreutils, since macOS' native date binary uses different arguments.
Essentially, change the shebang to "#!/usr/bin/env bash" and use "gdate" instead of "date" wherever "date" is used.
See the git alias `git-chart` for example.
The rest is application specific: you'll need to determine whether you want to/should normalize subdomains to their parent, for example.