This is a Python script that writes Git commits into whatever patterns you give it. I don't believe in error handling, so if you try to use it and it breaks, that's on you.
git init
to initialize an empty repo, or all the git commands from Python will failtemplate.png
main.py
to take the path of the image as an argumentpip install -r requirements.txt
, or make sure you have pillow
installedmain.py
git remote add <your_remote_link>
and push git push --set-upstream origin master
The script should handle generating the right number of commits on the right days, based on how dark each pixel in the original image is. I gotta be honest I didn't test this very extensively with anything other than black and white images (no gray values really) so it remains to be seen if those work very well.
Also you might run into trouble if it's a leap year. See the comment in main.py
. Good luck!