Skip to content

g-ix/gcp-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧬 Git Commit Pattern Generator

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.


🧠 What This Is

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.


⚙️ Features

  • 🌀 Simulates realistic GitHub activity
  • ⏳ Generates commits retroactively (starting 1 year ago by default)
  • 🕐 Adds randomized commit times (1–5 min apart)
  • 🧾 Uses a single .md file for all commits
  • ⚡ Bash and Python versions provided
  • 🔁 Can auto-run daily to maintain consistent activity
  • 💡 Easy to modify for your own pattern logic

🚀 How to Use

1. Clone this repo

git clone https://github.com/your-username/git-commit-patterns.git
cd git-commit-patterns

2. Make sure Git is initialized

git init

3. Make scripts executable

chmod +x dna_commit_pattern.sh

4. Run the script (creates commits from last year → today)

./dna_commit_pattern.sh

5. Push to your GitHub repo

git branch -M main
git remote add origin https://github.com/your-username/git-commit-patterns.git
git push -u origin main

After pushing, check your GitHub profile — you’ll see the green pattern start appearing on your graph 👀


🕒 Optional — Auto Daily Commits

To keep your GitHub looking “active” automatically every day,
set up a cron job on your server or local machine.

crontab -e

Add this line (runs daily at 10:00 AM):

0 10 * * * cd /path/to/your/repo && ./dna_commit_pattern.sh >> dna_cron.log 2>&1

Now your contribution graph will always stay lively — even while you’re asleep 😎


⚠️ Caution — Once Commits Are Made, They’re Permanent!

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.


🧹 Undoing / Reversing Commits

If you change your mind and want to undo the commits added by the script, here’s how:

Option 1 — Reset Last N Commits (local)

git reset --hard HEAD~N

Replace N with the number of commits you want to remove.

Option 2 — Start Fresh (delete all history)

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 main

This completely resets the repo, including your commit history.

Option 3 — Sandbox Mode

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.


🧩 Scripts Included

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)

🧭 Future Roadmap

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 👇


🤝 Contributing

  1. Fork this repository
  2. Create your branch:
    git checkout -b feature/your-pattern
  3. Add your new script (e.g., heart_pattern.sh)
  4. Commit and push:
    git commit -m "Added heart commit pattern"
    git push origin feature/your-pattern
  5. Create a Pull Request 🚀

Let’s make GitHub contribution graphs the new pixel art gallery.


📜 License

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!


🧬 Final Thoughts

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.”

❤️ from Brehmand.

Do visit our main website: BREHMAND ✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published