Hey there! 👋
I’m experimenting with the idea of turning Git commits into art — using them to create patterns on my GitHub contribution graph (the green squares you see on profiles).
This repository will eventually host different commit pattern scripts — starting with the DNA wave pattern you see here.
If you’re a developer who enjoys playful experiments or just wants your GitHub profile to look alive, this is for you.
GitHub’s contribution graph is essentially a 7×52 grid —
7 days per week × 52 weeks per year.
By making commits on specific days, you can “draw” on this grid.
This project automates that process using simple scripts that generate fake but harmless commit activity in a local repo (and optionally push it to your profile).
The first script included here —
dna_commit_pattern.sh— draws a wavy DNA-like pattern across your contribution chart.
- 🌀 Simulates realistic GitHub activity
- ⏳ Generates commits retroactively (starting 1 year ago by default)
- 🕐 Adds randomized commit times (1–5 min apart)
- 🧾 Uses a single
.mdfile for all commits - ⚡ Bash and Python versions provided
- 🔁 Can auto-run daily to maintain consistent activity
- 💡 Easy to modify for your own pattern logic
git clone https://github.com/your-username/git-commit-patterns.git
cd git-commit-patternsgit initchmod +x dna_commit_pattern.sh./dna_commit_pattern.shgit branch -M main
git remote add origin https://github.com/your-username/git-commit-patterns.git
git push -u origin mainAfter pushing, check your GitHub profile — you’ll see the green pattern start appearing on your graph 👀
To keep your GitHub looking “active” automatically every day,
set up a cron job on your server or local machine.
crontab -eAdd this line (runs daily at 10:00 AM):
0 10 * * * cd /path/to/your/repo && ./dna_commit_pattern.sh >> dna_cron.log 2>&1Now your contribution graph will always stay lively — even while you’re asleep 😎
Once you push commits to GitHub, they are recorded permanently in your public contribution graph.
Even if you delete the repo, the green squares will stay.
So, if you’re just experimenting, I recommend running it in a private repo first.
💭 TL;DR: Think before you script.
If you change your mind and want to undo the commits added by the script, here’s how:
git reset --hard HEAD~NReplace N with the number of commits you want to remove.
rm -rf .git
git init
git add .
git commit -m "Clean start"
git branch -M main
git remote add origin https://github.com/your-username/git-commit-patterns.git
git push -f origin mainThis completely resets the repo, including your commit history.
If you just want to experiment visually, keep it in a private repo and don’t push to your main profile.
That way, your public graph remains untouched.
| Script | Language | Description |
|---|---|---|
dna_commit_pattern.sh |
Bash | Creates a DNA wave pattern of commits |
dna_commit_pattern.py |
Python | Python equivalent (cross-platform version) |
I’ll be adding more scripts that generate different shapes and commit art, such as:
- ❤️ Heart pattern
- 🌊 Wave or spiral pattern
- 💀 Skull or emoji patterns
- 🔤 Alphabetic initials or logos
- 🎨 Custom pattern generator (visual-to-commit converter)
If you’d like to contribute your own pattern, scroll down 👇
- Fork this repository
- Create your branch:
git checkout -b feature/your-pattern
- Add your new script (e.g.,
heart_pattern.sh) - Commit and push:
git commit -m "Added heart commit pattern" git push origin feature/your-pattern - Create a Pull Request 🚀
Let’s make GitHub contribution graphs the new pixel art gallery.
This project is open-source under the MIT License.
Feel free to fork, remix, and create your own versions — just keep it respectful and safe!
I built this because I wanted my GitHub to tell a story —
not just lines of code, but a rhythm of creativity.
It’s purely for fun, experimentation, and aesthetic expression.
If you end up creating your own unique pattern, tag me or open a PR — I’d love to see it.
Code is temporary, commits are forever 🧠💚
– Garry (aka Wanderer)
“Curiosity is the only constant.”
Do visit our main website: BREHMAND ✨