Re:Show HN: Contribution Graph as a Git Command
by isomorphic on Friday May 27, 2022 @03:46PM
(#31534036)
Thank you for the utility.
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.
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.