šæ Gitwig ā Terminal Git UI & SourceTree Alternative (Built in Rust)
Gitwig (derived from Git + Twig, representing repository branches) is a lightweight, keyboard-driven Terminal Git UI (TUI) designed as a fast, minimal alternative to desktop Git GUI clients like SourceTree and terminal clients like lazygit. Built with Rust and ratatui, Gitwig presents all your Git repositories, worktrees, stashes, and branches in a clean, interactive bordered layout directly inside your terminal window.
š Installation & Running
Prerequisites
Gitwig requires the following external tools to be installed on your system:
git: A system installation ofgitis required in yourPATHfor operations like staging, diffing, pushing, pulling, and network syncing.ssh: Required if you use SSH-based Git remotes for network operations.[!NOTE] SSH Host Key Policy: To prevent connection hangs in the non-interactive TUI context, Gitwig executes git commands with
GIT_SSH_COMMANDset tossh -o StrictHostKeyChecking=accept-new. This automatically trusts and saves new host keys, while verifying existing ones to protect against MITM attacks. If you require a different SSH policy, make sure to add host keys to yourknown_hostsbeforehand.
Via Homebrew (macOS / Linux)
You can tap and install Gitwig using Homebrew:
Via Shell Script (macOS / Linux)
For a quick installation, run the following command in your terminal:
|
Note: If the repository is private, set your GitHub token first:
|
On Windows
You can install Gitwig on Windows via PowerShell:
Run the following command in PowerShell:
irm https://raw.githubusercontent.com/tareqmy/gitwig/master/scripts/install.ps1 | iex
Note: If the repository is private, set your GitHub token first:
$env:GITHUB_TOKEN="your_github_pat"
irm https://raw.githubusercontent.com/tareqmy/gitwig/master/scripts/install.ps1 | iex
- Benefits: Quick command-line installation to your user profile directory (
%USERPROFILE%\.gitwig\bin) without requiring administrator privileges. - Updating: Supports the in-app self-updater, which will automatically run
install.ps1to download newer versions.
Via Cargo
You can install Gitwig directly from crates.io:
Building from Source
Alternatively, you can clone the repository and build it from source:
The compiled binary will be located at target/release/gitwig. You can copy it to a directory in your $PATH or run it directly.
Uninstalling
If you installed Gitwig via the shell script, you can uninstall it at any time using:
|
If you installed Gitwig via the PowerShell script, you can uninstall it at any time using:
irm https://raw.githubusercontent.com/tareqmy/gitwig/master/scripts/uninstall.ps1 | iex
Running
# Run with default config resolution
# Run with an explicit config path
šø Preview

To play the interactive terminal recording locally:
⨠Features
- Fullscreen Terminal UI: Designed using
ratatuiandcrosstermwith modern visual styling. - Config-Driven Layout: Driven by
config.tomlfor persistence and custom configurations. - In-App Card Management: Add, edit, delete, and label items directly from the UI with automatic disk persistence.
- Global Summary Header Bar: High-level dashboard stats showing aggregate counts of repos, dirty repos, ahead counts, and stale repos.
- Background Auto-Refresh: Non-blocking background status checking every 10 seconds to keep your repo cards live and up-to-date.
- Uncommitted Work Warning Badge: Highlights repositories with a
ā PARTIALbadge when staged and unstaged changes coexist simultaneously. - Fuzzy Jump Picker: Instantly jump to any repository by name using the
/overlay. - Favorite / Star Repositories: Bookmark important repositories with
*separate from pinned items. - Compact View Toggle: Press
vto toggle between standard 4-row cards and a dense 1-row view. - Label / Group Collapsing: Organize repositories on the home page with collapsible label headers.
- Full-Screen Detail View: Press
Enterto open a multi-tab inspection interface (Workspace, Files tree with preview, Graph log, Branches, Tags, Remotes, Stashes, Worktrees, Submodules, Reflog). Tab headers dynamically fallback to their first character under restricted widths to prevent overflow. - Mode-Aware Status Bar: Shows contextual shortcuts dynamically with support for collapsed/expanded view (
.). When expanded, it dynamically wraps the shortcut items and calculates the exact number of rows needed based on terminal width.
āØļø Keybindings
| Key | Mode | Action |
|---|---|---|
ā / k |
Normal | Move selection up |
ā / j |
Normal | Move selection down |
a |
Normal | Add a new repository (via directory scanner) |
A |
Normal | Bulk add folders in a directory |
i |
Normal | Import remote repository |
e |
Normal | Edit the selected item |
D |
Normal | Delete the selected item (asks) |
l |
Normal | Edit labels of the selected item |
R |
Normal | Refresh status of selected item |
F |
Normal | Bulk fetch all tracked repositories concurrently |
f |
Normal | Enter repository search mode |
p |
Normal | Toggle pin status of selected item |
* |
Normal | Toggle Favorite / Star status of selected item |
Space |
Normal | Toggle selection of item for batch operations (fetch, delete, terminal) |
y |
Normal | Yank absolute path of selected item to clipboard |
/ |
Normal | Open fuzzy Jump-to-Repo picker overlay |
o |
Normal | Cycle list sorting mode (Custom ā Alphabetical ā Recent ā Changes) |
O |
Normal | Toggle list sorting direction (ascending vs. reversed) |
g |
Normal | Launch the preferred Git client for selected repository (configurable in settings, default is gitui) |
t |
Normal | Spawn a new shell (Terminal) in the selected repository's directory |
s |
Normal | Open options/settings page |
d |
Normal | Open debug logs panel |
V |
Normal | Show about popup / creator profile |
v |
Normal | Toggle between standard cards and compact 1-row view |
h |
Normal | Show signs & symbols legend popup |
u |
Normal | Check for application updates manually |
. |
Normal / Detail | Toggle status bar between collapsed and expanded view |
Enter |
Normal / Commits list | Open Detail view for selected item / Inspect selected commit |
? |
Normal / Help | Toggle the shortcut overlay |
ctrl+q |
Global / Anywhere | Quit application from anywhere |
Esc |
Normal | Clear active search filter or cancel all repository selections |
Enter |
Editing | Save the typed text and persist |
Esc |
Editing | Cancel without saving |
Enter |
RepoSearchInput | Apply repository search and return to Normal mode |
Esc |
RepoSearchInput | Clear repository search and return to Normal mode |
Enter |
Settings (Edit) | Save settings edit |
Esc |
Settings (Edit) | Cancel settings edit |
Esc / q |
Settings | Exit Settings and return to Home |
ā / ā / k / j |
Settings | Navigate setting fields |
Enter / Space |
Settings | Toggle / Edit selected setting |
Backspace |
Editing | Erase one character |
y / Y |
Confirm Dialog | Confirm action (delete item/branch/tag, push branch/tag/all tags, abort/continue merge) |
n / N / Esc |
Confirm Dialog | Cancel action |
? / Esc / q |
Help | Close the help overlay |
Esc / q |
Detail | Return to the list |
Tab / Shift+Tab |
Detail | Cycle active detail view tabs (Workspace ā Files ā Graph ā Branches ā Tags ā Remotes ā Stashes ā Worktrees ā Submodules ā Reflog) |
w / W |
Detail | Cycle panel focus forward (w) / backward (W) |
1 - 9 and 0 |
Detail | Jump directly to tab: Workspace (1), Files (2), Graph (3), Branches (4), Tags (5), Remotes (6), Stashes (7), Worktrees (8), Submodules (9), or Reflog (0) |
v / V |
Detail | Toggle full-screen repository Overview overlay |
ā / k |
Detail | Move selection or scroll list/diff/tree up |
ā / j |
Detail | Move selection or scroll list/diff/tree down |
PgUp / PgDn |
Detail / Normal / Settings | Scroll list/diff/tree/settings by configured page_size |
Home / End |
Detail / Normal / Settings | Jump to top / bottom of list/diff/tree/settings |
Enter |
Detail | Stage/Unstage file (Workspace tab), checkout branch (Branches tab), checkout tag (Tags tab), open worktree in new context (Worktrees tab), checkout commit (Reflog tab), or Inspect commit |
F (or f/F in Remotes) |
Detail | Fetch remote repository (Branches / Tags / Remotes tabs) |
p |
Detail | Pull selected local branch from remote (Branches tab), Push selected tag (Tags tab; asks confirmation), or Prune stale worktree metadata (Worktrees tab) |
Shift+P |
Detail | Push selected local branch to remote (Branches tab) or Push all tags (Tags tab; asks confirmation) |
ā / ā |
Detail | Focus Local/Remote branch (Branches tab) or Local/Remote tag (Tags tab) |
ā / ā or < / > or , / . |
Detail | Collapse/Expand directory (Files tab) |
/ |
Detail | Fuzzy find files (Files tab) / commits (Workspace commits list / Logs view) / branches (Branches tab) / tags (Tags tab) |
e / o |
Detail | Open selected file in configured terminal editor (Files tab) |
Shift+H |
Detail | View selected file's commit/revision history (Files tab) |
c |
Detail | Open commit prompt (Workspace tab or Inspect view), or Create branch from HEAD (Branches tab) |
a |
Detail | Stage All (Workspace tab Unstaged focus) / Unstage All (Workspace tab Staged focus), Apply stash (Stashes tab), or Add worktree (Worktrees tab) |
x |
Detail | Discard selected file changes (Workspace tab or Inspect view; asks confirmation) |
X |
Detail | Discard all changes in repository (Workspace tab or Inspect view; asks confirmation) |
i |
Detail | Interactive rebase from selected commit (Workspace tab commits list) |
G |
Detail | Load more commits (Workspace commits list / Logs view) |
l |
Detail | Open Logs view (Workspace tab commits list focus) or Toggle lock status (Worktrees tab; asks reason/unlocks) |
D |
Detail | Delete selected branch (Branches tab; asks confirmation), tag (Tags tab; asks confirmation), stash (Stashes tab; asks confirmation), or remove worktree (Worktrees tab; asks confirmation) |
s |
Detail | Open Stashing UI overlay (Workspace tab), Prompt to save stash (Stashing UI / Stashes tab), or Open theme picker (Overview overlay) |
u |
Detail | Toggle "Stash untracked files" option (Stashing UI) |
i |
Detail | Toggle "Keep index" option (Stashing UI) |
Ctrl+U |
Input (Stash) | Toggle "Stash untracked files" option (Stash Create popup) |
Ctrl+I |
Input (Stash) | Toggle "Keep index" option (Stash Create popup) |
m |
Detail | Merge selected branch into current branch (Branches tab; asks confirmation) |
r |
Detail | Rebase current branch onto selected branch (Branches tab; asks confirmation) |
o |
Detail | Accept OURS version of conflict (Workspace tab Conflicts / ConflictDiff) |
t |
Detail | Accept THEIRS version of conflict (Workspace tab Conflicts / ConflictDiff) |
r |
Detail | Mark conflict as resolved (Workspace tab Conflicts / ConflictDiff) |
A |
Detail | Abort the merge (Workspace tab Conflicts / ConflictDiff; asks confirmation) |
C |
Detail | Continue the merge (Workspace tab Conflicts / ConflictDiff; asks confirmation) |
f |
Detail | Open search column picker and go to logs (Workspace tab) |
R |
Detail | Resync the active tab state |
? |
Detail | Toggle detail help overlay |
Esc / q / ? |
DetailHelp | Close detail help overlay |
āC |
CommitInput (Edit) | Finish editing commit message (switches to confirm state) |
āµ (Enter) |
CommitInput (Edit) | Insert a newline |
Backspace |
CommitInput (Edit) | Erase one character from commit message |
Esc |
CommitInput | Cancel commit and return to Detail view |
āµ (Enter) |
CommitInput (Confirm) | Submit / execute Git commit |
e / E |
CommitInput (Confirm) | Edit / resume typing commit message |
a / A / Space |
CommitInput (Confirm) | Toggle amend last commit option |
Left-Click (Mouse) |
Normal | Select the clicked item |
Double-Click (Mouse) |
Normal | Open Detail view for clicked item |
Left-Click (Mouse) |
Detail | Shift focus to the clicked panel or change active tab |
Left-Click + Drag (Mouse) |
Detail | Drag panel boundary splitters to dynamically resize layout splits |
Scroll Wheel (Mouse) |
Normal / Detail | Scroll selected list, graph view, branches, tree items, or unified diffs |
Press ? at any time in normal mode to see the full keybinding reference as a centered popup. The help overlay only handles the dismissal keys ā your selection and scroll position are preserved underneath.
The selected card's border color mirrors the current operation mode:
- Default (Muted) ā browsing the list (unselected).
- Cyan ā browsing the list (selected).
- Yellow ā typing into the input field during add/edit; the selected card's border turns yellow so you can see exactly which item will be replaced.
- Red ā awaiting delete confirmation; the doomed card's border turns red.
The selected item is marked with a left-edge ā accent, a colored border, and bold text. In ADDING and EDITING modes the real terminal cursor sits at the end of your input so you can see exactly where the next character will land.
š Item status indicators
Each repository card shows icons and badges reflecting its state:
General Icons
š(or[P]) ā Pinned repository.ā(or*) ā Starred / favorite repository.ā git(orG clean) ā Clean Git repository.ā dir(oro dir) ā Directory exists but is not a git repository.ā missing(orx missing) ā Path does not exist or is not a directory.
Compact Status Suffixes
For git repositories, the status indicator shows compact counts for any non-zero values:
| Suffix | Meaning | Colour |
|---|---|---|
N+ |
N files staged for commit | Cyan |
N! |
N files modified but not staged | Yellow |
N? |
N untracked files | Muted |
Nā |
N conflicted files | Red / Danger |
Nā |
N commits ahead of upstream (needs push) | Bold Green |
Nā |
N commits behind upstream (needs pull/fetch) | Bold Yellow |
When all counts are zero, the indicator shows ā clean. Press ? or h at any time to see the legend inside the app.
ā Staging Divergence (ā PARTIAL)
When a repository has both staged changes and unstaged changes (modified or untracked) coexisting simultaneously, Gitwig will display a yellow ā PARTIAL warning badge next to the repository name on its card.
Active Repository State Badges
When a repository has an active Git operation or special state, Gitwig displays a colored status badge:
ā CLEANā No active Git state/operation.ā MERGEā Active Merge session (contains conflicts).š§ REBASEā Active Interactive/Normal Rebase.ā” CHERRYā Active Cherry-pick operation.ā” REVERTā Active Revert operation.š BISECTā Active Bisect session.š¬ APPLYā Applying patches (mailbox).
Global Summary Header Bar
The high-level dashboard stats at the top of the homepage show:
- repos: Total number of configured repositories.
- dirty: Repositories with uncommitted/unstaged changes.
- ahead: Repositories with local commits ahead of their remote tracking branch.
- stale: Repositories where the last commit is older than 30 days.
Auto-Refresh & Manual Refresh
Items support ~ and ~/... expansion, so ~/code/gitwig resolves to your home directory.
Gitwig automatically refreshes all repository statuses in the background every 10 seconds using non-blocking background threads, ensuring the home dashboard is always live and up-to-date. You can also press R to manually refresh the selected item's status immediately (e.g. after running a git command externally); the status bar briefly flashes Refreshed to confirm.
š Detail view
Press Enter on a selected item to open a full-screen Detail view. The detail view supports ten tabs for git repositories: Workspace, Files, Graph, Branches, Tags, Remotes, Stashes, Worktrees, Submodules, and Reflog.
- Press
1to switch to the Workspace tab. - Press
2to switch to the Files tab. - Press
3to switch to the Graph tab. - Press
4to switch to the Branches tab. - Press
5to switch to the Tags tab. - Press
6to switch to the Remotes tab. - Press
7to switch to the Stashes tab. - Press
8to switch to the Worktrees tab. - Press
9to switch to the Submodules tab. - Press
0to switch to the Reflog tab. - Press
vfrom any tab to toggle the repository Overview full-screen overlay. - Alternatively, press
Tab/Shift+Tabto cycle forward/backward through the tabs. - You can also click on the tab headers directly with the mouse to switch tabs.
Press
Escorqto return to the repository list.
Panel Layout & Navigation (Workspace Tab)
For a git repository, the Workspace tab is split into multiple rounded panels with a 40:60 width ratio on the bottom:
- Commits (top 50%): Lists the recent commits in the repository. If there are uncommitted changes, a special row named
Uncommitted changeswill be pinned to the very top. - Staging Area / Changed Files (bottom-left 40%): Lists files that are modified, staged, or untracked. When
Uncommitted changesis selected at the top, this panel is split vertically intoStagedandUnstagedsections. When a real commit is selected, it is split horizontally, showing the list of files modified in that commit in the top half, and full commit details (hash, author, date, refs, and message) in the bottom half. - Staging Details (bottom-right 60%): Displays the unified diff of the selected file.
Files Tab
The Files tab displays all tracked files in the repository as an interactive directory tree on the left, and a preview panel on the right.
- Directory nodes are prefixed with
>when collapsed andā¼when expanded. - File nodes are prefixed with
š. - Expand Folder: Select a collapsed directory and press
>or.orRight-Arrow. - Collapse Folder: Select an expanded directory and press
<or,orLeft-Arrow. - Preview Panel: Selecting a file displays its content (up to 100 KB) on the right; selecting a directory displays a list of files and folders directly inside it.
- File History View: Select any file in the tree and press
Shift+Hto open a history split-panel view, showing revisions on the left and the revision's diff on the right. PressTab/wto cycle focus, andEsc/qto return.
Graph Tab
The Graph tab renders the git log history graph / branch visualization graph.
Branches Tab
The Branches tab is split vertically into left and right panels:
- Local Branches (left): Lists local branches in the repository, sorting the active branch to the top marked with
ī. - Remote Branches (right): Lists remote tracking branches.
You can focus either branch panel by pressing w / W or using the ā / ā arrow keys.
Tags Tab
The Tags tab lists both local tags and remote tags.
- Select a local tag and press
āµ(Enter) to checkout that tag. - Select any tag and press
Dto delete it (asks for confirmation). - Press
pto push the selected tag to the remote (asks for confirmation). - Press
P(Shift+P) to push all tags to the remote (asks for confirmation).
Remotes Tab
The Remotes tab lists configured remotes for the repository.
Stashes Tab
The Stashes tab lists all available stashes in the repository with a horizontally split layout:
- Stashes (Top-Left): Lists all stashes. Selecting a stash automatically highlights the first file in the files list. Press
Dto delete the selected stash, ora/Ato apply it (both options ask for confirmation). When applying, you can toggle whether to delete the stash after applying (default is Yes). - Stashed Files (Bottom-Left): Lists the files changed/saved in the selected stash.
- Stash Diff (Right): Shows the unified patch diff of the selected file.
- Navigate stashes or stashed files using
ā/kandā/j.
Stashing UI
Pressing s / S inside the Workspace tab opens the dedicated Stashing UI overlay popup:
- Left Panel: Displays the list of all modified, staged, unstaged, untracked, and conflicted files that will be stashed. You can navigate through this list using
ā/ā/k/j. - Right Panel: Displays checkboxes for stashing options:
- Toggle stashing untracked files with
u. - Toggle keeping the index with
i.
- Toggle stashing untracked files with
- Actions:
- Press
sto save the stash. This opens a text prompt to input an optional stash message/name (where stashing options can also be toggled withCtrl+UandCtrl+I). - Press
Esc/q/Qto cancel and return to the Workspace view.
- Press
Worktrees Tab
The Worktrees tab lists all Git worktrees linked to the repository.
- Press
ato add a new worktree. You will be prompted to enter a base branch/commit name, followed by the destination path. - Press
lto toggle lock status on the selected worktree (adds/removes lock reason). - Press
Dto remove the selected worktree. You can choose to either remove only the Git metadata or delete the folder from disk entirely. - Press
pto prune stale worktree metadata. - Press
Enterto open the selected worktree (registers it to the Home screen cards list if not present, and opens it).
Submodules Tab
The Submodules tab lists all git submodules defined in the repository:
- Name: The submodule identifier.
- Status: Shows
Clean,Modified(local changes or commit mismatch), orUninitialized. - Commit (Index): The target commit SHA the superproject expects.
- Commit (HEAD): The actual checked-out commit SHA in the submodule directory.
- URL: The remote source URL of the submodule.
Reflog Tab
The Reflog tab lists HEAD reflog entries for the repository, enabling easy recovery of lost commits and branches:
- Selector: The reflog reference index (e.g.
HEAD@{0}). - Commit OID: Shortened commit target hash.
- Action: The action type (e.g.
checkout,commit,rebase,reset), highlighted based on the action. - Message: The action details and commit message.
- Time / Date: Relative age and absolute UTC date of the operation.
- Checkout Commit: Press
EnterorSpaceon any entry to checkout that commit hash.
Overview Overlay
Pressing v from any repository detail tab displays the Overview overlay, showing resolved paths, tracking info, and committer statistics. Press Esc, q, or v to return to your workspace. Press s inside the Overview overlay to open the Repository Settings page.
Navigation & Interaction
You can navigate and interact with these panels in the following ways:
- Cycle Focus: In the Workspace, Files, Branches, Tags, Stashes, Worktrees, Submodules, and Reflog tabs, press
w/Wto cycle panel focus:- Workspace tab:
CommitsāStagedāUnstagedāStagingDetails. - Files tab:
Files(left tree list) āFileContent(right preview panel). - Branches tab:
Local BranchesāRemote Branches. - Tags tab:
Local TagsāRemote Tags. - Stashes tab:
StashesāStashed FilesāStagingDetails. - Worktrees tab:
Worktrees(main table). - Submodules tab:
Submodules(main table). - Reflog tab:
Reflog(main table). Focus defaults to the main panel of the tab when switching tabs (e.g.,Commitson Workspace tab,Fileson Files tab,Local Brancheson Branches tab,Local Tagson Tags tab,Stasheson Stashes tab,Worktreeson Worktrees tab,Submoduleson Submodules tab,Reflogon Reflog tab).
- Workspace tab:
- Mouse Click to Focus/Select: Left-click inside any panel's boundaries (including branch/tag/stash list panels, stashed files list, files list, and the files tab content preview panel) to focus it immediately.
- Resize Split Panels: Left-click and drag the vertical or horizontal boundary splitter lines between panels to resize them dynamically. This is supported in:
- Workspace / Inspect: Main vertical split (commits vs details), bottom horizontal split (left list vs right diff), and left vertical split (staged vs unstaged or commit details vs files list).
- Files: Horizontal split (repository files tree vs file content preview).
- Branches: Horizontal split (local branches vs remote branches).
- Stashes: Horizontal split (stash lists vs diff) and left vertical split (stashes list vs stashed files).
- Overview Overlay: Horizontal split (overview info vs committer stats).
- Mouse Wheel Scroll: Use the mouse wheel to scroll vertically through the active list, commit history, branch list, files list, stashed files list, staging details diff, or files tab preview panel.
- Navigate Lists: Use
ā/kandā/jto select a commit, file, branch, tag, stash, stashed file, or file tree item in the active list. - Scroll Diff: When the
Staging Detailspanel is focused, you can scroll the unified diff text vertically usingā/kandā/j(line-by-line) orPgUp/PgDn(page-by-page). - Scroll File Content: When the files tab
FileContentpreview panel is focused, you can scroll the preview text vertically usingā/kandā/j(line-by-line) orPgUp/PgDn(page-by-page). - Stage/Unstage Files: Select the
Uncommitted changesrow at the top, select a file in either theStagedorUnstagedlist, and pressEnterto stage or unstage that file instantly. Pressato Stage All (when focused on Unstaged) or Unstage All (when focused on Staged), which automatically shifts panel focus to the opposite list. Pressxto discard changes in the selected file, orXto discard all changes in the repository (both ask for confirmation before performing). - Network Progress Bar: Any long-running network operations (such as Fetch, Pull, or Push) will display a centering animated progress bar popup so the UI thread remains responsive and visual feedback is clear. If an operation hangs or takes too long, you can press
Escto force-dismiss the progress popup and resume TUI interaction immediately. - Multi-Remote Selection Picker: For write operations (pushing branch/tags, deleting tags, fetching tags), if the repository has multiple configured remotes and no upstream tracking branch is set, a selection picker popup will appear allowing you to select which remote to target using āā and Enter.
- Manage Branches: While on the Branches tab:
- Select any local branch (other than the currently active one) and press
Enterto check it out (safe checkout strategy applies). - Press
f/Fto fetch updates from the remote in the background. - Select any local branch and press
pto pull updates from its remote in the background (can only pull into the currently checked-out branch). - Select any local branch and press
Shift+Pto push it to the remote in the background (if no upstream is configured, it will attempt to push to the first configured remote and set it as the upstream tracking branch). - Select any remote branch and press
Enterto check it out (this will switch to the branch, creating a local tracking branch if it doesn't already exist). - Press
c/Cto create a new branch from the currently checked out branch (or HEAD). A popup dialog will prompt for the new branch name. - Select any local or remote-tracking branch and press
Dto delete it. A confirmation dialog will prompt before performing the deletion. (The currently checked out branch cannot be deleted).
- Select any local branch (other than the currently active one) and press
- Commit Staged Changes / Amend Last Commit: Press
cfrom the Workspace tab or from the Inspect view to open a centered Commit popup window (active if there are staged changes OR a prior HEAD commit exists to amend).- Compose Mode: Type your commit message. Press
Ctrl+Cto lock in the text and switch to confirmation state, pressEnterto insert a newline, orEscto cancel. - Confirm Mode: Press
Enterto execute the commit,eto return to composing/editing the message,a/A/Spaceto toggle the "Amend last commit" option, orEsc/qto close the popup. Toggling amend to active when the buffer is empty automatically populates the text box with the message from the last commit.
- Compose Mode: Type your commit message. Press
For a plain directory the view confirms the resolved path and explains that no .git entry was found.
For a missing item the view confirms the resolved path and notes that the path does not exist or isn't accessible.
The detail snapshot is taken once when you press Enter ā it is not refreshed while open (except for staging/unstaging actions which refresh dynamically). Close and re-open to re-read the repository state.
After every successful add / edit / delete, the status bar briefly shows Saved or Deleted. If the write fails, the status bar shows Save failed: <reason> instead ā your in-memory list still reflects the change, but the file on disk does not.
š Main Page Sorting
The main page repository list can be sorted dynamically using shortcuts:
- Cycle Sort Order (
o): Cycles through the sorting modes:Custom(preserves your manual list order),Alphabetical,Recent Visit(tracks when you enter a repository's detail view), andLatest Changes(based on HEAD commit timestamps or folder modification times). - Toggle Sort Direction (
O): Toggles ascending vs. descending/reversed sort direction. The top border displays the active sort mode (e.g.Sort: Alphabetical (Rev)).
š§ Configuration
Gitwig stores its config in ~/.gitwig/config.toml. The directory is created automatically on first launch.
First-run migration
If ~/.gitwig/config.toml doesn't exist yet, Gitwig looks for an existing config to migrate from:
- A path passed as the first CLI argument (
gitwig path/to/config.toml). ./config/config.tomlrelative to the current working directory../config/config.tomlrelative to the executable.~/.config/gitwig/config.toml(new XDG location),~/.config/twig/config.toml(legacy Twig XDG location), or~/.twig/config.toml(legacy Twig home location).- Nothing found ā a default config is written to
~/.gitwig/config.toml.
After the first run the migrated (or generated) file becomes the sole source of truth; the original is left untouched.
Example: config.toml
= ["Repo A", "Repo B", "Side Project", "Test Repo"]
# Event-loop poll interval in milliseconds (default: 100).
# Lower ā more responsive input, higher ā less CPU usage. Sane range: 16ā500.
= 100
# Sorting preferences for the main page list
= "custom"
= false
# Enable compatibility mode to use simple ASCII symbols
= false
Config keys
| Key | Type | Default | Description |
|---|---|---|---|
items |
[String] |
[] |
Paths shown in the main list. Managed by the in-app a (directory scan) / e / d shortcuts. |
poll_interval_ms |
Integer |
100 |
How long (ms) the event loop waits between input checks. Lower feels snappier; higher saves CPU. |
max_commits |
Integer |
0 |
Maximum commits to load in workspace view. Set to 0 for unlimited. |
page_size |
Integer |
10 |
Number of lines/items scrolled by Page Up / Page Down. |
sort_by |
String |
"custom" |
Main list sorting preference ("custom", "alphabetical", "recent_visit", "latest_changes"). Managed by o. |
sort_reverse |
Boolean |
false |
Inverts the main list sorting direction (ascending vs. descending). Managed by O. |
theme |
String |
"default" |
Active theme configuration name. Managed in Settings s. |
compatibility_mode |
Boolean |
false |
Enable to use simple ASCII symbols instead of rich Unicode icons/emojis (prevents layout alignment issues in restricted terminals like RustRover's built-in terminal). |
scan.max_depth |
Integer |
6 |
Maximum directory depth to search for git repositories during discovery. |
scan.start_dir |
String |
"$HOME" |
Starting directory for interactive repository discovery scanning. |
scan.excludes |
[String] |
[] |
Directory names excluded from discovery scanning. |
scan.git_only |
Boolean |
true |
Only scan folders that contain a .git directory. |
Gitwig writes back to whichever file it loaded from, so edits made in the UI persist across runs.
šØ Font & Symbol Support
Gitwig uses rich Unicode symbols, icons, and Nerd Font glyphs (such as ā, ā, ā, ā¶, ī , etc.) to provide a premium, modern visual experience directly in the terminal.
To display these symbols correctly without layout breakage or replacement characters (e.g., question marks or empty blocks), your terminal emulator must use a font containing Nerd Font glyphs.
Recommended Font (Bundled)
We have bundled the clean and highly popular JetBrains Mono Nerd Font inside this repository:
- Location:
resources/fonts/JetBrainsMonoNerdFontMono-Regular.ttf
š„ How to Install the Font:
- macOS: Open the
resources/fonts/directory in Finder, double-clickJetBrainsMonoNerdFontMono-Regular.ttf, and click Install Font. - Windows: Right-click
JetBrainsMonoNerdFontMono-Regular.ttfand select Install (or Install for all users). - Linux: Copy the font file to your local font directory:
āļø How to Configure Your Terminal:
Open your terminal emulator settings (e.g. iTerm2, Alacritty, Kitty, Windows Terminal, macOS Terminal) and set the active font to JetBrainsMono Nerd Font Mono (or JetBrainsMonoNF).
š ļø Compatibility Mode (No Font Install Required)
If you prefer not to install custom fonts, Gitwig includes a built-in fallback:
- Open the settings popup in the app by pressing
s. - Focus the
Compatibility Modeoption and toggle it totrue. - Alternatively, add
compatibility_mode = truein yourconfig.toml.
When Compatibility Mode is active, Gitwig will automatically substitute all Nerd Font glyphs and complex emojis with standard ASCII and basic terminal symbols to ensure a clean, stable layout in any standard monospaced font.