Main Features
Interactive CLI
User-friendly interface with interactive prompts for choosing commit types, scopes, and descriptions.
Conventional Commits
Strictly follows the conventional commits specification for consistent and semantic versioning.
Emoji Support
GitHub-compatible emoji codes to make your commits more visual and organized.
Commit Management
Edit or delete existing commits with interactive selection and safety checks.
Tag Creation
Create and push annotated or lightweight tags directly from the CLI.
Git Integration
Complete Git workflow support including staging, committing, and pushing.
How It Works
________ ________ ________ |\ ____\ |\ ____\ |\ ____\ \ \ \___| \ \ \___| \ \ \___| \ \ \ \ \ \ \ \ \ ___ \ \ \____ \ \ \____ \ \ \|\ \ \ \_______\ \ \_______\ \ \_______\ \|_______| \|_______| \|_______| Conventional Commits Generator โโโโโโโโโโโโโโโโโโโโโโโโ โ Commit Types โ โโโโโโโโโโโโโโโโโโโโโโโโ 1. โจ feat - A new feature 2. ๐ fix - A bug fix 3. ๐ง chore - Routine tasks 4. ๐จ refactor - Code refactoring 5. ๐ style - Style changes 6. ๐ docs - Documentation 7. ๐งช test - Adding tests 8. ๐ฆ build - Build system changes 9. โช revert - Reverts a commit 10. ๐ท ci - CI/CD changes 11. โก perf - Performance improvements Choose the commit type: 1 โโโโโโโโโโโโโโโโโโโโโโโโ โ Scope โ โโโโโโโโโโโโโโโโโโโโโโโโ Enter the scope (optional): auth โโโโโโโโโโโโโโโโโโโโโโโโ โ Breaking Change โ โโโโโโโโโโโโโโโโโโโโโโโโ Is this a BREAKING CHANGE? (y/n): n โโโโโโโโโโโโโโโโโโโโโโโโ โ Emoji โ โโโโโโโโโโโโโโโโโโโโโโโโ Include emoji in commit message? (y/n): y โโโโโโโโโโโโโโโโโโโโโโโโ โ Commit Message โ โโโโโโโโโโโโโโโโโโโโโโโโ Enter the commit message: implement OAuth login โโโโโโโโโโโโโโโโโโโโโโโโ โ Commit Body โ โโโโโโโโโโโโโโโโโโโโโโโโ Commit body (optional): Added Google OAuth 2.0 support Integration with existing user system โโโโโโโโโโโโโโโโโโโโโโโโ โ Review โ โโโโโโโโโโโโโโโโโโโโโโโโ Generated commit: :sparkles: feat(auth): implement OAuth login Confirm this commit message? (y/n): y โ New commit successfully created! Do you want to push these changes? (y/n): y โ Changes pushed successfully!
Installation
Using pipx (recommended)
Using pip
Development Setup
cd conventional-commits-generator
chmod +x scripts/setup_venv.sh
./scripts/setup_venv.sh
Available Commands
๐ Interactive Commit
Create a commit with interactive prompts
๐ฌ Generate Message Only
Generate commit message without committing
๐ค Push Only
Push existing commits to remote
โ๏ธ Edit Commit
Edit an existing commit message
๐๏ธ Delete Commit
Delete an existing commit
๐ท๏ธ Create Tag
Create and push a new tag
๐ Reset Changes
Discard local changes and pull from remote
๐ Specific Paths
Stage specific paths instead of all changes
โน๏ธ Version
Display current CCG version
Commit Types
โจ feat
A new feature for the user or a particular enhancement
๐ fix
A bug fix for the user or a particular issue
๐ง chore
Routine tasks, maintenance, or minor updates
๐จ refactor
Code refactoring without changing its behavior
๐ style
Code style changes, formatting, or cosmetic improvements
๐ docs
Documentation-related changes
๐งช test
Adding or modifying tests
๐ฆ build
Changes that affect the build system or external dependencies
โช revert
Reverts a previous commit
๐ท ci
Changes to CI configuration files and scripts
โก perf
A code change that improves performance
Requirements
- โ Python 3.8 or higher
- โ Git installed and configured