Create custom patterns, text, or designs on your GitHub contribution graph using automated commits.
This project is a Python-based script that takes a generated pattern.json file and converts it into real GitHub commits, making your contribution graph display the desired pattern using green dots.
🎯 Built for learning, fun, and open-source experimentation.
Think of this project as a time machine 🚀 for your GitHub contribution graph.
We all have moments where:
- We were inactive for months
- Made mistakes
- Forgot to push code
- Or simply didn’t know GitHub well enough
This tool lets you travel back in time and visualize patterns on your contribution graph by converting a generated pattern.json into real commits with past dates.
It doesn’t change who you are —
it just helps you experiment, learn, and have fun with how GitHub graphs work.
✨ Wash away old gaps, explore commit history mechanics, and create something visually cool — responsibly.
Here’s what a generated pattern looks like on a GitHub profile:
GitHub contribution graph is:
- 7 rows → days of the week
- 52 columns → weeks in a year
This script:
- Reads your pattern grid
- Converts active cells into commit dates
- Creates commits using Git
- GitHub shows them as green dots
No fake rendering — real commits, real graph.
This script requires a pattern file.
You can generate it using my pattern generator website or from my repository:
🌐 GitHub Pattern Generator
👉 https://github-pattern-generator.web.app/
Steps:
- Open the website
- Design your text or pattern
- Download
pattern.json - Place it in this repository by replacing old "pattern.json"
Here’s what a generated pattern looks like and remember to download:
- Create a new public repository on GitHub
- This repository will be used to generate contribution commits
- Prefer using an empty repo
Clone it locally:
git clone <your-new-repo-url>
cd <your-new-repo-name>Clone the tool repository to get the required script files:
git clone https://github.com/aurafarmerone/github-contribution-graph-hack.gitThis repository contains:
- Commit generation script
- Supporting files
- Copy the required script files from the cloned tool repository
- Paste them into your new repository directory
- Ensure the script file is present in the repo root
- Delete the cloned tool repository
- This avoids
.gitconflicts and unexpected errors
- Delete the existing
pattern.json - Paste your downloaded
pattern.json - Ensure the filename is exactly:
pattern.json
Before running the script, push the setup:
git add .
git commit -m "Initial setup for contribution pattern"
git push origin mainRun the script:
python script.pyWhen prompted, enter the year:
Enter year to draw pattern: 2023
This will:
- Generate real commits
- Assign past dates
- Encode your pattern into the GitHub contribution graph
⏳ Execution time depends on pattern size.
- Open your GitHub profile
- Scroll to Contribution Graph
- Your custom pattern will appear as green dots
⏰ GitHub may take a few minutes to update.
👉 Video Link: https://youtu.be/OQpGpr-m42s
This project is created just for fun, learning, and experimentation.
❗ Please do NOT:
- Mislead others using your contribution graph
- Claim fake activity during interviews
- Use this for unfair advantages
Be honest — skills matter more than graphs.
Want to improve this project?
Please read CONTRIBUTING.md for guidelines on:
- Reporting issues
- Suggesting features
- Submitting pull requests
All contributions are welcome ❤️
This project is licensed under the MIT License — feel free to use, modify, and distribute.
Made with ❤️ by Aura Farmer
If you find this project useful, consider giving it a ⭐ on GitHub!

