| Crates.io | xgit |
| lib.rs | xgit |
| version | 0.2.3 |
| created_at | 2025-07-14 00:33:10.700795+00 |
| updated_at | 2025-08-11 00:04:02.064283+00 |
| description | A enhanced AI-powered Git tool |
| homepage | https://github.com/LiXuanqi/xgit |
| repository | https://github.com/LiXuanqi/xgit |
| max_upload_size | |
| id | 1750942 |
| size | 182,120 |
An enhanced Git tool built with Rust that provides AI-powered commit messages, interactive branch management, and GitHub PR integration.
cargo install xgit
To update to the latest version:
cargo install xgit --force
Note: The --force flag is required to overwrite the existing installation.
Select and switch between branches interactively:
xgit branch
# or use the short alias:
xgit b
View comprehensive branch information including GitHub PR status:
xgit branch --stats
# or use the short alias:
xgit b --stats
Clean up branches that have been merged to main:
# Preview what would be deleted (recommended first)
xgit branch --prune-merged --dry-run
# or use the short alias:
xgit b --prune-merged --dry-run
# Interactive deletion - select which branches to remove
xgit branch --prune-merged
# or use the short alias:
xgit b --prune-merged
Generate commit messages automatically using AI:
# Stage your changes first
git add .
# Use AI to generate commit message
xgit commit
# or use the short alias:
xgit c
Use any git command through xgit:
xgit status
xgit log
xgit push
# ... any git command
xgit automatically detects GitHub repositories and fetches PR information for each branch. Authentication options:
GITHUB_TOKENClone the repository:
git clone https://github.com/LiXuanqi/gitx
cd xgit
Install git hooks (recommended):
./scripts/install-hooks.sh
Build and test:
cargo build
cargo test
cargo clippy --all-targets -- -D warnings