NOTES: This post is a joke.
And, I haven't gone through GitHub's specifications in detail, so this may not be the best way to do it.
Suppose you've been diligently working on Contributions every day on GitHub.
Unfortunately, you're busy with something else that day and you forget to color in your Contributions graph.
You can't help but wonder if you can't find a way to color in the blank graph.
(As an image, here's what I'm imagining below; October 30 is left blank.)
I didn't check GitHub's specs in detail, but I assume the GitHub Contributions refer to Git's commit time.
In this article, we're going to try to falsify the original Contributions by setting up a new repository and falsifying the commit time in that repository.
I'll describe the procedure in the following paragraphs.
Here's the actual command I typed.
GIT_COMMITTER_DATE="Fri Oct 30 12:30:27 2020 +0900" git commit --amend --date="Fri Oct 30 12:30:27 2020 +0900"
GIT_COMMITTER_DATE="Fri Oct 30 12:30:27 2020 +0900" is
CommitDate rewritten into the specified time.
--date="Fri Oct 30 12:30:27 2020 +0900" is
AuthorDate rewritten into the specified time.
In this case, the same time is specified in both cases.
When you run this command, you'll see that AuthorDate and CommitDate have been changed.
git log -1 --pretty=fuller
In the image below, you can see that the contributions that didn't really exist have been added.
Here is the actual repository where this work was done.
The day I did this was Halloween.
I wanted to do some kind of prank-like (trick-or-treating-inspired) joke, so I challenged myself to do it.
It's just a joke!
So it's best not to do it in a real work :)