grec
v0.7.3
Published
Short alias for git-rewrite-commits - AI-powered git commit message rewriter
Maintainers
Readme
grec - git-rewrite-commits (short alias)
A short command alias for git-rewrite-commits - AI-powered git commit message rewriter.
Installation
npm install -g grecThis will give you the grec command as a shorter alternative to git-rewrite-commits.
Usage
All commands work exactly the same as git-rewrite-commits, just shorter:
Quick examples
# Rewrite commit history with AI
grec
# Preview changes (dry run)
grec --dry-run
# Install git hooks
grec --install-hooks
# Generate message for staged changes
grec --staged
# Use local AI with Ollama
grec --provider ollamaComplete usage
# All options from git-rewrite-commits work:
grec [options]
Options:
-h, --help Show help
-V, --version Show version
-d, --dry-run Preview changes without applying
-v, --verbose Show detailed output
-b, --branch <branch> Target branch (default: current)
-m, --max-commits <n> Process only last n commits
-s, --staged Generate message for staged changes
--skip-backup Don't create backup branch
--skip-well-formed Skip already well-formed commits (default)
--no-skip-well-formed Process all commits
--min-quality <n> Min quality score (0-10, default: 7)
--provider <provider> AI provider: openai/ollama (default: openai)
--model <model> AI model to use
--template <template> Commit message template
--language <lang> Output language (default: en)
--prompt <prompt> Custom AI prompt
--install-hooks Install git hooks
--skip-remote-consent Skip consent prompt (for automation)Why grec?
- Shorter to type:
grecvsgit-rewrite-commits - Easier to remember: Git Rewrite Commits = grec
- Same functionality: 100% compatible, just an alias
Documentation
For full documentation, examples, and setup guides, see:
License
MIT - Same as git-rewrite-commits
