Skip to main content

cheGi logo

cheGi

The ultimate Git companion. Type less, do more.

PyPI version Downloads Python Tests Documentation License: MIT Copr build status Docker pulls Docker image

cheGi is a fast, developer-friendly CLI for managing Git across your entire workspace. Scan multiple repositories at once, catch secrets before they ship, sync branches safely, and automate the repetitive parts of your daily Git workflow — all from a single tool with a beautiful terminal UI.

cheGi donates 20% of all funding to charity — local aid, disaster relief, and community causes. See CHARITY.md for details.

Features

  • Workspace scan — Discover Git repos concurrently and get a unified status overview
  • Branch manager — List, create, switch, merge, rename, delete, sync branches
  • Smart clone — Clone repos with user/repo shorthand, submodule init, smart .gitignore
  • Secure commit — Guided commit with security checks and multiple commit styles
  • Security guard — Detect sensitive files (.env, keys, tokens) in staged changes
  • Strict guard — Scan both staged and unstaged files
  • History scan — Scan all Git history across branches for leaked secrets
  • Git hooks — Install pre-commit/pre-push hooks with automatic guard scanning
  • Safe sync — Pull with rebase, push, and auto-stash when your tree is dirty
  • Commit reword — Update commit messages interactively, including older commits
  • Project scaffolding — Create new Git projects with .gitignore, license, README
  • Health check — Comprehensive project health check with actionable suggestions
  • Environment setup — Bootstrap dev toolchains (Python, Go, Rust, and more)
  • Gitignore generator — Build .gitignore files from technology presets
  • Shell completions — Generate completions for bash, zsh, fish, powershell
  • GitHub integration — Browse repos, clone your own repos, push new projects
  • Token auth — Encrypted token storage for GitHub and GitLab
  • Self-upgrade — Auto-check for updates and upgrade from the CLI
  • Flexible config — Per-workspace settings via .chegi.json or .chegi/ directory
  • First-run wizard — Guided setup on first use (Git identity, SSH keys, theme, auth)

Requirements

  • Python 3.8+
  • Git installed and available on your PATH

Installation

All methods

Method Command
pip (PyPI) pip install chegi
Homebrew (macOS) brew tap Ad-alwer/chegi && brew install chegi
Docker docker pull adalwer/chegi
PPA (Ubuntu/Debian) sudo add-apt-repository ppa:ad-alwer/chegi && sudo apt update && sudo apt install chegi
COPR (Fedora) sudo dnf copr enable alwer/cheGi && sudo dnf install python3-chegi
AUR (Arch Linux) yay -S chegi (pending submission)
WinGet (Windows) winget install chegi
Binary (Linux) Download .tar.gz, .deb, or .rpm from Releases
Binary (macOS) Download .tar.gz (universal2 — Intel + Apple Silicon) from Releases
Binary (Windows) Download .zip or .msi from Releases
Source pip install git+https://github.com/Ad-alwer/cheGi.git

Platform support: Linux (amd64, arm64), macOS (Intel + Apple Silicon), Windows (amd64).

From source (development)

git clone https://github.com/Ad-alwer/cheGi.git
cd cheGi
python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e ".[dev]"

Quick Start

# Scan all repositories under your projects folder
chegi scan ~/projects

# Check staged files for secrets before committing
chegi guard

# Interactive branch manager
chegi branch

# Clone a repo with smart defaults
chegi clone user/repo

# Scaffold a new project
chegi new my-app -t python

# Project health check
chegi doctor

# Safe sync
chegi sync

# Self-upgrade
chegi upgrade --check

Commands

Command Description
auth Manage token-based authentication for GitHub and GitLab
branch Full branch manager — list, create, switch, merge, rename, delete, sync, info
clone Clone repositories with smart defaults
co / br / ci / st Git alias pass-through commands
commit Secure replacement for git commit with guided style selection
completions Generate shell completion scripts
config Manage workspace settings, mirrors, and sensitive patterns
config git View and modify Git global configuration
doctor Comprehensive project health check
guard Check files for sensitive data before committing
hooks Install Git hooks with automatic guard scanning
info Quick project status dashboard
init Initialize .chegi/ project configuration directory
new Scaffold new Git projects from scratch
repo List and browse GitHub repositories
reword Reword a commit message interactively
scan Scan a directory tree for Git repositories
setup Install and configure a development environment
sync Safely sync the current branch with its remote
upgrade Check for and install the latest version of cheGi

Full documentation: ad-alwer.github.io/cheGi

Run chegi --help or chegi <command> --help for built-in usage details.

Configuration

Settings are stored in .chegi.json or .chegi/config.json at the root of your project:

chegi config list
chegi config set max_depth 5
chegi config exclude-add node_modules

See CONTRIBUTING.md for development setup and SECURITY.md for the security policy.

Development

pip install -e ".[dev]"
pytest -v
ruff check src tests
ruff format --check src tests
mkdocs build --strict

License

MIT — see LICENSE.

Metadata

Release files for chegi 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chegi 0.4.0
File Size Uploaded
chegi-0.4.0.tar.gz 139.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chegi 0.4.0
File Interpreter ABI Platform
chegi-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 324.4 kB

Release files / chegi-0.4.0.tar.gz

Download URL chegi-0.4.0.tar.gz
Size 139.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6a5edde51763df593fe27837a5b5f6a4393018d0c81ad42f5be2bf9ed8dd235b
BLAKE2b-256 checksum
How to use checksums
5f62c7fd953c1253190a96e996bf026ef6b71c8e8f191594a0ba83ad1a8baf53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2026.

Transparency log

Release files / chegi-0.4.0-py3-none-any.whl

Download URL chegi-0.4.0-py3-none-any.whl
Size 185.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ca275fbaf79de4bc55b2059dd820db0506b9812ba6504df63967dbee186d791
BLAKE2b-256 checksum
How to use checksums
4523f652c5929b132a3b1be4f3405ada6c36f68b63188d4fb6982628027c9e89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page