Rewriting git commit History is fun
Ankit Beniwal
Posted on September 7, 2020
Howdy folks? I hope you all are staying safe.
So, I was looking at the git commit documentation and found a very interesting parameter for specifying the date while performing a commit.
Basic Syntax is:
git commit --date=<date>
I also saw two related environment variables - GIT_AUTHOR_DATE
& GIT_COMMITTER_DATE
.
Then, the moment came when this idea struck my mind of rewriting commit history. But as usual, after digging deep I came to know that the idea has already been executed. (Why it happens all the time?? Is there anything left for me to do? :D)
My previous year's github contribution history which was pretty white looked like:
And with the help of a automation script, I rewrote it to:
After this, I explored more and found gitfiti. Take a look at it if you wanna know more about it. It helped me rewrite my contribution history in a graffiti style.
The final result:
Take a peek at my GitHub History.
I also wrote about this in my first rant on devRant. Go ++ it out: https://devrant.com/rants/2979790/rewrote-my-git-commit-history-now-it-looks-real-d
Posted on September 7, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.