in root.html). Outputs custom og:image with assets_prefix normalisation and non-Google site verification. --> Commitments to clean commits | IT-Journey in _layouts/root.html. What this file adds: - Custom og:image with preview_images.assets_prefix path normalisation for the theme-specific page.preview and page.header.og_image keys. When page.image is set, jekyll-seo-tag handles og:image and this file skips its own og:image output to avoid duplicate tags. - Non-Google site verification tags (Bing, Yandex, Naver, Baidu) Dependencies: - jekyll-seo-tag plugin (loaded in _layouts/root.html via Commitments to clean commits | IT-Journey ) - site.preview_images config in _config.yml =================================================================== --> Commitments to clean commits | IT-Journey Skip to main content
Settings
Search
Appearance
Theme Mode
About
Jekyll v3.10.0
Environment Production
Last Build
2026-04-11 02:52 UTC
Current Environment Production
Build Time Apr 11, 02:52
Jekyll v3.10.0
Build env (JEKYLL_ENV) production
Quick Links
Page Location
Page Info
Layout default
Collection quests
Path _quests/tools/commitments-to-clean-commits.md
URL /quests/level-0010-commitments-to-clean-commits/
Date 2025-04-18
Theme Skin
SVG Backgrounds
Layer Opacity
0.6
0.04
0.08

Commitments to clean commits

By IT-Journey Team

Learn how to maintain clean commits in your projects for better collaboration and version control efficiency.

Estimated reading time: 2 minutes

Ah, brave adventurer! You’ve mastered the sacred art of branching and the scroll-writing ritual known as the Pull Request. Now, prepare thyself for the next enchanted trial:


📝 Commit Hygiene & the Magic of Tiny Spells (Chapter 2)

Welcome to the Hall of Git Commit Lore, where great developers are remembered not by the size of their changes, but by the clarity of their messages. Here, we embrace the Tiny Spell Rule: One spell per scroll. One change per commit.


🪄 The Rule of Atomicity

A wise coder once said: “Don’t mix your potions.” Each commit should contain one logical change—no more, no less. Fixing a bug and tweaking the font? That’s two commits, dear wizard.

🧠 Why care?

  • Easy to track what broke (and who broke it 👀)

  • Easier reviews, easier rollbacks

  • Clean history = happy time-traveling with git blame


📦 Naming Your Spells (a.k.a. Commit Messages)

Commits should read like commands from an ancient book. Short, imperative, and focused.

✨ The Format:

[type]: Brief, powerful description

Optional: Details for fellow wizards.
- Use bullet points
- Reference issues like Fixes #42

🧙‍♂️ Allowed Spell Types:

  • feat: A dazzling new feature

  • fix: Bug exorcism

  • docs: Documentation enchantments

  • refactor: Code reweaving without changing behavior

  • test: Adding test shields

  • chore: Non-functional but necessary work (e.g., build updates, lint configs)


🧪 Example Commit Scrolls

fix: Prevent unicorns from breaking login form

Login page now properly handles magical input.
- Added validation for glitter overflow
- Fixed edge case for rainbow passwords

Fixes #99
feat: Summon dark mode theme toggle

- Adds crescent moon toggle in navbar
- Stores user preference in local storage
chore: Update potion dependencies to latest brew

🧹 Commit Smells (Avoid These Cursed Patterns)

  • ❌ update stuff

  • ❌ more fixes lol

  • ❌ final version for real

  • ❌ temp pls ignore

These are scrolls written in the ancient language of confusion. Burn them.


🎩 Bonus Spell: Use git rebase -i to rewrite messy commit history. Clean your spellbook before publishing it to the world.


Now go forth and cast tiny, purposeful commits that will echo through the halls of version control! 🏰

Ready to open the next dusty tome? We’ll be diving into Changelogs & Documentation, the sacred texts of any thriving code kingdom. Shall we?