β‘ Fast Conventional Commits

Write conventional git commits automatically. Never think about allowed commit formats again, this toolset does it for you.
# Instead of this:
git commit -m "fix stuff"
git commit -m "WIP"
git commit -m "updated files"
# Get this automatically:
git commit -m "feat(auth): add JWT token validation"
git commit -m "fix(api): resolve timeout in user login"
git commit -m "docs(readme): update installation instructions"
WHAT IS THIS?
Lightening-fast "git add-ons," that do the repetitive work:
fcgh - installs a git-hook (locally or globally), to check your commit messages, ensuring they comply to conventional commit format.
ccg - generates conventional commit messages, based on your recent changes (and copies it to your clipboard)
ccdo - same as ccg (above), except it ALSO does the git commit FOR YOU
π Quick Start
Step 1: Install
For Linux/Windows: Download from releases and extract to your PATH
# macOS
curl -sSL https://raw.githubusercontent.com/greenstevester/fast-cc-git-hooks/main/install-macos.sh | bash
# Linux/Windows - Manual install (choose your platform below)
Step 2: Set up once, globally (for all repos - this is the default)
fcgh setup-ent
Or Locally (from within the current repo)
fcgh setup-ent --local
Step 3: set a JIRA ticket reference (when you start working on a ticket)
ccg set-jira CGC-1234
Step 4.a: use ccg to preview the commit message (copied to the clipboard)
NOTE: You don't need to run git add . manually - both ccg and ccdo handle this automatically as part of their workflow.
ccg # Generates commit message with ticket reference (if you set one) and copies to the clipboard
OR
Step 4.b: Generate + Commit automatically (fastest)
ccdo # Generates commit message with ticket reference (if you set one) + commits automatically
π Done! Every commit is now formatted.
π To recap, choose your workflow
π€ Fully Automated (fastest)
Let the tools do everything for you:
ccdo # Analyzes changes, creates perfect commit message, commits it
- No heavy lifting for message formulation required
- Always follows conventions
- Perfect for daily development
π Preview First
See the generated message before committing:
ccg # Shows suggested commit message + copies to clipboard
# Review the message, then paste with Ctrl+V:
git commit -m "feat(api): add user authentication endpoint"
- Review before committing
- Learn good commit patterns
- Full control over final message
βοΈ Manual + Validation
Write your own messages with automatic validation:
git commit -m "feat: add cool feature"
# β
Commit message is valid (fcgh hook is invoked and validates automatically)
git commit -m "fix stuff"
# β Commit message validation failed: invalid format
- Write your own messages
- Automatic format checking
- Learn by doing
Windows:
- Download
fast-cc-git-hooks_windows_amd64.zip from releases
- Extract
fcgh.exe, ccg.exe, and ccdo.exe
- Add to your PATH
Linux:
curl -L -o fcgh.tar.gz https://github.com/greenstevester/fast-cc-git-hooks/releases/latest/download/fcgh_linux_amd64.tar.gz
tar -xzf fcgh.tar.gz
chmod +x fcgh ccg ccdo
sudo mv fcgh ccg ccdo /usr/local/bin/
macOS:
# Intel Macs
curl -L -o fcgh.tar.gz https://github.com/greenstevester/fast-cc-git-hooks/releases/latest/download/fcgh_darwin_amd64.tar.gz
tar -xzf fcgh.tar.gz && chmod +x fcgh ccg ccdo && sudo mv fcgh ccg ccdo /usr/local/bin/
# Apple Silicon (M1/M2/M3)
curl -L -o fcgh.tar.gz https://github.com/greenstevester/fast-cc-git-hooks/releases/latest/download/fcgh_darwin_arm64.tar.gz
tar -xzf fcgh.tar.gz && chmod +x fcgh ccg ccdo && sudo mv fcgh ccg ccdo /usr/local/bin/
π§ Build from Source
Requires Go 1.25+
git clone https://github.com/greenstevester/fast-cc-git-hooks.git
cd fast-cc-git-hooks
make build-all-tools
make install-all
βοΈ Configuration
Basic Setup (Works for 90% of projects):
fcgh setup-ent # Sets up everything with enterprise features
Project-Only Setup:
fcgh setup-ent --local # Only for current repository
Custom Configuration:
fcgh init # Creates ~/.fast-cc/fast-cc-config.yaml for customization
π’ Enterprise Features
- JIRA Integration: Auto-include ticket numbers
- Team Scopes: Predefined scopes (api, web, cli, db, etc.)
- Custom Rules: Company-specific validation
- Advanced Patterns: Complex commit requirements
ccg set-jira PROJ-1234 # Auto-include JIRA ticket
ccg jira-status # Check current ticket
π οΈ Commands Reference
| Command |
Purpose |
Example |
fcgh setup-ent |
One-time setup with validation |
Sets up git hooks |
ccdo |
Generate + commit automatically |
ccdo |
ccg |
Generate message (preview only) |
ccg --verbose |
fcgh validate |
Test a commit message |
fcgh validate "feat: add feature" |
fcgh status |
Show hook and JIRA status |
Shows installation status and current ticket |
β Common Questions
Q: Do I need all three tools?
No! They work independently:
- Just hooks:
fcgh setup-ent validates your manual messages
- Just generation:
ccg generates messages without validation
- Full automation: All three together for zero-thought commits
Q: What if I don't like the generated message?
Use ccg (without ccdo) to preview first. Copy the generated command and modify it before running.
Q: Does this change my code?
No! It only affects commit messages. Your code stays exactly the same.
Q: Can I turn it off temporarily?
fcgh remove # Remove hooks
fcgh setup-ent # Add them back
π― Examples
β
Good commits (auto-generated):
feat(auth): add JWT token validation
fix(api): resolve timeout in user login
docs(readme): update installation instructions
test(user): add integration tests for signup flow
β Bad commits (blocked by validation):
fix stuff
WIP
updated files
asdf
π Why Conventional Commits?
- π Auto-generate changelogs from commit history
- π·οΈ Semantic version bumps based on commit types
- π Searchable history with consistent formatting
- π₯ Team collaboration with clear change communication
- π€ CI/CD integration for automated workflows
π Advanced Topics
Semantic Analysis
The tools include intelligent analysis for infrastructure code, particularly Terraform with Oracle OCI awareness.
JIRA Integration
ccg set-jira PROJ-1234 # Set ticket for next 10 commits
ccg clear-jira # Remove ticket
ccg jira-history # View ticket history
Custom Scopes
Edit ~/.fast-cc/fast-cc-config.yaml to add project-specific scopes:
scopes:
- api
- web
- cli
- database
- auth
- docs
Multiple Install Types
- Global: Works for all Git repositories on your machine
- Local: Works only for current repository
- Local always wins when both are installed
Once using conventional commits, you can automate your entire release process:
π€ Contributing
Found a bug? Want a feature? Open an issue or submit a PR.
π License
MIT License - do whatever you want with this code!
TL;DR: fcgh setup-ent + ccdo = perfect commits forever π
π Learn More: