Welcome to the wild side of Git, where we don’t just commit; we commit with style. You’ve stumbled upon the ultimate guide to keeping your Git repository so clean, it’ll make your OCD sing hallelujah.
Why You Need This in Your Life
Let’s face it, your Git repo can be a hot mess. You’ve got code flying left and right, branches sprouting like weeds, and commits piling up like last week’s laundry. It’s time to bring some order to this chaos, and that’s where ez-pre-commit
struts in like a rockstar.
The Magic Wand: ez-pre-commit
This isn’t your grandma’s pre-commit hook. ez-pre-commit
is a badass bash script that wrestles your pre-commit hooks into submission. It’s like having a personal bouncer at the door of your repository, making sure every commit is up to snuff before it struts its stuff.
Features That’ll Blow Your Mind
- Installs a shiny new pre-commit hook, treating your old one with respect (aka backs it up).
- Slaps a
pre-commit.sh
script skeleton right in the face of your repository. Use it, love it, don’t even think about deleting it. - Uninstalls the pre-commit hook without breaking a sweat, restoring backups if they’re lurking around.
- Logs everything. Like, everything. So you can stalk your commits like a pro.
Installing This Beast
You want it? You got it. Run this bad boy in your terminal and watch the magic happen:
curl -O https://raw.githubusercontent.com/psyb0t/ez-pre-commit/master/ez-pre-commit && chmod +x ez-pre-commit && mv ez-pre-commit ~/bin/
And hey, if ~/bin
isn’t strutting its stuff in your PATH
, show it some love. Add export PATH="$PATH:$HOME/bin"
to your shell config, and give it a good ol’ source
to make it official.
Using This Monster
To Install:
ez-pre-commit install
To Uninstall (but why would you?):
ez-pre-commit uninstall
In Conclusion
So there you have it, folks. ez-pre-commit
is the chaos-taming, commit-checking, repo-respecting tool you didn’t know you needed. Give it a whirl and watch your Git game soar to badass heights.
Remember, in the world of code, it’s not just about making it work; it’s about making it work with style. And ez-pre-commit
? It’s all about that style.
And because you got here, here’s the github repo URL: https://github.com/psyb0t/ez-pre-commit