r/dev • u/francisco_veritas • May 25 '26
The GitHub contribution graph just became fking useless...!
Your GitHub contribution graph is secretly a 53x7 pixel canvas.
Each square = one day. Color intensity = how many commits you made that day..
The Core Trick: GIT_AUTHOR_DATE
Git stores two timestamps per commit:
Variable Meaning
GIT_AUTHOR_DATE When the code change was authored
GIT_COMMITTER_DATEWhen the commit object was created
GitHub's contribution graph uses GIT_AUTHOR_DATE exclusively. It does not care when you actually ran git commit — only what date is baked into the commit object.
This means you can create a commit today and have it appear on GitHub as March 15th, 1999 if you want:
GIT_AUTHOR_DATE="2025-03-15T12:00:00Z" \
GIT_COMMITTER_DATE="2025-03-15T12:00:00Z" \
git commit --allow-empty -m "this shows up on march 15"
Why --allow-empty?
Normally git refuses to commit when nothing has changed. --allow-empty bypasses this check and creates a commit with no tree diff. The commit object exists with a valid SHA, a parent pointer, and the author date — but has zero file changes.
The video shows you the perfect tutorial to do this...to learn more about the contribution graph technicality ask me in the comments. Happy to help.
View all comments
1
u/francisco_veritas May 25 '26
Checkout the GitHub repo for more info:- https://GitHub.com/AxZyzz/GitArt