git-swift
v0.2.0
Published
A fast git branch switcher with fuzzy search
Maintainers
Readme
git swift
Lightning-fast branch switching with fuzzy search
A minimal CLI tool that lets you quickly find and switch between Git branches using a clean, interactive interface.
Features
- ⚡ Fast branch switching - Find branches faster than you can type their full name
- ⌨️ Keyboard-driven - Navigate and delete branches without reaching for the mouse
- 🔢 Smart shortcuts - Quick-switch to recent branches (
Alt+1..9) - 🛠️ Git-compatible - Supports standard
git switchflags (create, detach, etc.)
Installation
Using npm (Recommended)
npm install -g git-swiftFrom source
go install github.com/ddddami/git-swift@latestUsage
Interactive mode
Simply run:
git swiftThis opens an interactive UI where you can:
| Key | Action |
| --- | --- |
| Type | Filter branches |
| ↑ / ↓ | Navigate list |
| Enter | Switch to branch |
| Alt / Option + 1-9 | Quick switch to branch # |
| Delete / Ctrl+X | Delete selected branch |
| Esc | Quit |
Direct mode
If you know part of the branch name:
git swift branch-nameThis will switch directly to the branch if an exact match is found.
Pass-through mode
Pass standard git switch flags directly:
git swift -c new-feature # Create & switch
git swift --detach commit # Detach HEADWhy git swift?
- Minimal UI - Just the information you need, nothing more
- Lightweight - Fast startup time, small memory footprint
- Zero configuration - Works out of the box
License
MIT
