finds.dev← search

// the find

angusshire/greenhat

★ 1,551 · Python · GPL-3.0 · updated Mar 2024

:construction_worker: Quick hack for making real work happen.

greenhat is a single Python script that backfills fake commits into a repo to fill in your GitHub contribution calendar, using GIT_AUTHOR_DATE/GIT_COMMITTER_DATE to spoof commit timestamps. It's aimed at people who want a green-looking profile without the underlying activity, not at anyone doing real version control work.

The core mechanism is correct and simple: it shells out to git with the date env vars set, which is the actual supported way to backdate a commit, not some hacky rewrite of .git internals. It supports resuming a partial run by passing a starting date, which matters given the README itself says a full year took eight hours. The whole thing is one readable file with no dependencies beyond git and Python's stdlib.

It rewrites and force-pushes your commit history, and the README's only warning is a single line burying that fact. There's no error handling around the git subprocess calls, so a failed push or auth issue mid-run likely leaves you with a half-backdated history and no clear signal what happened. Eight hours for 365 days means one commit-and-push cycle per few seconds, presumably serialized subprocess calls with no batching, which is slow and hard on rate limits for no real reason. It's unmaintained since March 2024 and solves a problem (gaming the contribution graph) that's arguably not one you want solved.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →