xgit-0.2.1 is not a library.
xgit
An enhanced Git tool built with Rust that provides AI-powered commit messages, interactive branch management, and GitHub PR integration.
Features
- 🤖 AI-powered commit messages - Generate conventional commit messages using AI
- 🌿 Interactive branch management - Easy branch switching with a visual picker
- 📊 Branch statistics with GitHub PR tracking - View branch status, merge state, and associated GitHub PRs
- 🗑️ Smart branch pruning - Clean up merged branches with safety checks and interactive selection
- 🔗 GitHub integration - Automatically detect and display pull request information
- 🚀 Git passthrough - Works seamlessly with existing git workflows
Installation
Usage
Interactive Branch Switching
Select and switch between branches interactively:
Branch Statistics & GitHub PR Tracking
View comprehensive branch information including GitHub PR status:
Smart Branch Pruning
Clean up branches that have been merged to main:
# Preview what would be deleted (recommended first)
# Interactive deletion - select which branches to remove
AI-Powered Commits
Generate commit messages automatically using AI:
# Stage your changes first
# Use AI to generate commit message
Git Passthrough
Use any git command through xgit:
# ... any git command
GitHub Integration
xgit automatically detects GitHub repositories and fetches PR information for each branch. Authentication options:
- Environment variable: Set
GITHUB_TOKEN
- Unauthenticated: Works with public repos (rate limited)
Development
-
Clone the repository:
-
Install git hooks (recommended):
-
Build and test: