
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
gitmoji-msg
Advanced tools
AI-powered gitmoji commit message generator! Automatically analyze your git changes and generate meaningful commit messages following the gitmoji standard.
Try gitmoji-msg instantly without installing:
# Using bunx (recommended)
bunx gitmoji-msg
# Using pnpm
pnpm dlx gitmoji-msg
# Using npx
npx gitmoji-msg
For regular use, install globally:
# Using bun (recommended)
bun add -g gitmoji-msg
# Using pnpm
pnpm add -g gitmoji-msg
# Using npm
npm install -g gitmoji-msg
Set up your API key (OpenAI example):
export OPENAI_API_KEY="your-api-key"
Generate commit message:
gitmoji-msg run
That's it! The AI will analyze your changes and suggest gitmoji commit messages.
USAGE
$ gitmoji-msg [COMMAND]
COMMANDS
config Manage gitmoji-msg configuration settings
generate Generate gitmoji commit messages using AI analysis of your staged changes
help Display help for gitmoji-msg
list List available gitmojis with their descriptions
plugins List installed plugins
run Add all changes, generate gitmoji commit message, and commit automatically
# Add all changes, generate message, and commit automatically
gitmoji-msg run
# Generate commit message for staged changes only (stages nothing if nothing staged)
gitmoji-msg generate
# Manage configuration settings
gitmoji-msg config
# List available gitmojis
gitmoji-msg list
# Display help
gitmoji-msg help
# Generate with specific options
gitmoji-msg generate --scope api --model gpt-4
# Non-interactive mode (use first suggestion)
gitmoji-msg generate --no-interactive
# Auto-commit after generating
gitmoji-msg generate --commit
# Full workflow with options
gitmoji-msg run --scope feat --model gpt-4
# Dry run - see what would be committed without committing
gitmoji-msg run --dry-run
# Non-interactive run
gitmoji-msg run --no-interactive
# View current configuration
gitmoji-msg config
# Set configuration values
gitmoji-msg config set provider openai
gitmoji-msg config set model gpt-4o-mini
gitmoji-msg config set interactive true
# List all gitmojis
gitmoji-msg list
# Search gitmojis by keyword
gitmoji-msg list --search feature
gitmoji-msg list --search bug
# Show gitmoji codes instead of emojis
gitmoji-msg list --codes
The tool can be configured via:
~/.gitmoji-msg.json)OPENAI_API_KEY - OpenAI API keyANTHROPIC_API_KEY - Anthropic API key| Option | Default | Description |
|---|---|---|
provider | openai | AI provider (openai, anthropic) |
model | gpt-4o-mini | AI model to use |
interactive | true | Show multiple suggestions |
autoCommit | false | Auto-commit generated messages |
scope | - | Default scope for commits |
run command: If nothing is staged, stages all changes automatically. If changes are already staged, works only with those staged changes.generate command: Only works with currently staged changes. Won't stage anything automatically.git diff$ gitmoji-msg run
📋 Checking repository status...
📁 Found 3 changed file(s):
➕ src/components/UserProfile.tsx
📝 src/types/user.ts
📝 README.md
Add all changes and proceed with commit? Yes
➕ Adding all changes...
🔍 Analyzing changes...
📊 Found changes in 3 file(s): tsx, ts, md
🤖 Generating gitmoji suggestions...
✨ Generated commit message:
Title: ✨ (components): add UserProfile with avatar support
Description: Created a new UserProfile component that displays user information with avatar support and integrated TypeScript type definitions. This component was needed to provide a consistent user interface element across the application. The TypeScript types ensure type safety and improve developer experience by providing proper intellisense and compile-time error checking.
Reasoning: New feature component was added to the codebase
Confidence: 95%
🚀 Committing changes...
✅ Changes committed successfully!
📋 Commit: a1b2c3d "✨ (components): add UserProfile with avatar support"
$ gitmoji-msg run
🔍 Analyzing changes...
📊 Found changes in 1 file(s): tsx
🤖 Generating gitmoji suggestions...
✨ Generated commit message:
Title: ✨ add UserProfile component with avatar support
Description: Implemented a new UserProfile component that renders user details with customizable avatar display. This component provides a reusable interface element for showing user information consistently across the application.
Reasoning: New feature component was added to the codebase
Confidence: 95%
$ gitmoji-msg run
🔍 Analyzing changes...
📊 Found changes in 1 file(s): ts
🤖 Generating gitmoji suggestions...
✨ Generated commit message:
Title: 🐛 fix email validation regex pattern
Description: Fixed the email validation regular expression that was incorrectly rejecting valid email addresses with plus signs and underscores. The previous pattern was too restrictive and caused user registration failures. This fix ensures all RFC-compliant email addresses are properly accepted.
Reasoning: Bug fix for validation logic
Confidence: 92%
$ gitmoji-msg run --scope docs
🔍 Analyzing changes...
📊 Found changes in 2 file(s): md
🤖 Generating gitmoji suggestions...
✨ Generated commit message:
Title: 📝(docs): update API documentation and examples
Description: Updated the API documentation to reflect recent endpoint changes and added comprehensive examples for the new authentication flow. The documentation now includes code samples in multiple languages and clarifies the required headers for secure API access. These updates will help developers integrate with the API more effectively.
Reasoning: Documentation files were updated
Confidence: 98%
git checkout -b feature/amazing-feature)gitmoji-msg --commit)git push origin feature/amazing-feature)MIT License - see LICENSE file for details.
FAQs
create gitmoji commit messages with ai!
We found that gitmoji-msg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.