Introduction

By Bimbok and adityapaul26
A powerful interactive Git automation wizard that simplifies your GitHub workflow with an interactive menu system.
We strongly recommend using Bimagic Go Edition (bimagic-go)! Rebuilt from the ground up in Go, it features sub-5ms multi-threaded performance, native Windows (bimagic.exe) support, shortcut symlink (wz), full hardware security key & passkey support (FIDO2 / Touch ID / YubiKey), Nerd Font icons, and new spells (Unstage, Discard, Tag Operations, Diff Wizard, Cherry-Pick, Rebase, Conflicts, Blame, Submodules).
The classic Bash script version remains supported for Unix environments.
Overview
Bimagic is an interactive command-line tool that streamlines common Git operations, making version control more accessible through a user-friendly menu interface. It handles repository initialization, committing, branching, tag management, diff inspection, cherry-picking, stash operations, reflog recovery, and interactive sparse checkouts with GitHub integration using personal access tokens, SSH, or hardware security keys & passkeys.
Sample
Interactive magic spell menu with custom theme styling
Interactive confirmation dialog with dynamic button themes
Features
⚡ Go Engine Highlights (Recommended Edition)
- Multi-Threaded Speed Engine: 5ms execution latency using Go parallelism (
runtime.GOMAXPROCS& single-passgit status --porcelain=v2 --branch). - Native Windows Support: Runs natively on Windows (
bimagic.exe), macOS, and Linux without needing WSL. - Shortcut Symlink (
wz): Automatically provisionswz -> bimagicshortcut symlinks during installation. - Nerd Font Icons: Clean modern terminal UI aesthetics.
Core Operations
- Interactive Interface: Intuitive menu-driven command-line experience with Charm's
gum. - Commit Management: Streamlined staging, committing, and undoing ("Time Turner") with multi-select revert support.
- Unstage Files: Interactive multi-select unstaging (
git restore --staged). - Discard Local Modifications: Safe interactive discard of unstaged edits (
git checkout --). - Interactive Rebase & Squash: Combine N commits into 1 (
git reset --soft), interactive rebase (git rebase -i), or rebase onto target branch. - Conflict Resolution Assistant: 1-click conflict resolution (Accept Ours
--ours, Accept Theirs--theirs, or open in$EDITOR). - Code Blame & Line History: Line-by-line commit and author attribution with
fzffile picker andbatsyntax highlighting. - Git Submodule Manager: Initialize, sync (
--recursive), or add Git submodules. - Tag Mastery: Complete tag lifecycle (create annotated/lightweight, list, push, delete local & remote tags).
- Diff & Inspection Wizard: Interactive viewer for unstaged diffs, staged diffs, file diffs, and branch comparisons.
- Cherry-Pick Wizard: Select and apply commits onto current branch with conflict resolution.
- Branching & Merging: Simplified branch management (switch, create, rename
-m, delete-d/-D) and merging with automated conflict detection. - Stash Management: Full support for stash operations including push, pop, list, apply, drop, and clear.
- Shallow Clone Support: Use
--depthfor lightweight clones. - Resurrection Stone: Recover lost commits/branches from reflog.
Repository Management
- Secure Integration: GitHub authentication via personal access tokens or SSH.
- Automated Initialization: Rapid setup and repository initialization with guaranteed
mainbranch default. - Smart Cloning: Support for standard and interactive sparse checkout (
--filter=blob:none) with real-time transfer speed () and ETA. - The Architect: Integrated
.gitignoregenerator for professional project setup with 70+ blueprints. - Safety: Automated
master-to-mainbranch renaming and safe file removal with Git integration.
Analysis & Visualization
- Status Dashboard: Real-time overview of branch status, ahead/behind counts, and uncommitted changes in a high-contrast rounded box with Matugen TrueColor theme support.
- Visual Commit Graph: High-quality "pretty git log" for clear history visualization.
- Contributor Stats: Detailed project contribution insights with custom time-range filtering.
- The Scrying Glass: Scrollable file browser with
fzfside-by-side preview andbatsyntax highlighting. - Direct Keymap Help Table: Responsive terminal-width Help Table (
wz -h) with zero truncation.
Customization
- Theming Engine: Full UI customization with support for ANSI and Hex color codes via
~/.config/bimagic/theme.wz. - Matugen Integration: Automatic Material You wallpaper color syncing.