Skip to content
Kaldy14Public

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

345 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Gud icon

Git Gud

A fast, local-first desktop Git client.

Supported on macOS, with experimental Windows builds.

Review whole changes as connected stories, then run everyday Git workflows without leaving your flow.

macOS and Windows Latest Git Gud release Electron 43 React 19 TypeScript 6

Git Gud whole pull-request review grouped by related changes

Git Gud is a focused desktop Git client inspired by the strongest parts of GitKraken's local workflow. It uses your installed Git, existing SSH agent, credential helpers, and repository configuration. Local repository work does not require a hosted account.

Important

macOS is the fully supported release platform. GitHub Releases also include an experimental, unsigned Windows x64 portable executable; Windows-specific integrations have not yet been fully adapted or release-tested. Linux builds are not currently provided.

Review the change, not the file list

Most Git clients present a pull request as an alphabetized stack of files. That is faithful to the patch, but it makes the reviewer reconstruct the change in their head. A single feature may begin in a migration, change a type or GraphQL field, pass through generated code, alter an implementation, and finish in tests several folders away.

Git Gud builds a deterministic review plan for the whole pull request. It splits the patch into hunks, reads TypeScript and GraphQL structure with Tree-sitter, and connects declarations, usages, renames, shared symbols, and matching schema fields. Related hunks become a change story even when they live in different files.

Within each story, Git Gud puts storage changes and definitions first, followed by APIs, generated code, implementation, tests, and translations. Every changed hunk belongs to exactly one story. The confidence label explains how strong the connection is, while the file tree, search, filters, and unified or split diff remain available when file order is the better tool.

The review plan appears immediately and does not depend on AI. The optional background guide uses that exact plan to summarize intent and suggest where to start, without replacing or reordering the underlying evidence.

PR reviews save a local checkpoint after you see at least half the changed lines included by your filters. On return, unchanged chunks you fully saw are hidden; changed or directly related chunks stay visible. This uses deterministic patch matching and requires no AI setup. Checkpoints include patch text, stay on this machine, and retain up to 20 recent PRs within a storage limit.

Use the scope menu at the top of the review sidebar to switch between Changes since review and Full PR. Other filters still apply. Filters also lets you inspect replaced or removed patches and reset the saved review. A changed comparison base keeps all current code visible. The adjacent icons open all files, generate or open an AI brief, and run Bug finder.

Draft line, file, and reply comments stay local until the review is ready:

Git Gud pull-request review with local draft comments

The final step publishes the selected decision and all local drafts together:

Git Gud finish-review dialog with draft comments and review decision

Features

  • Whole-change review. Review a commit, a selected commit range, the working directory, an entire branch, or a pull request as connected change stories. Use the resizable file tree, whole-review search, persistent filters, viewed progress, keyboard file navigation, expandable surrounding code, TypeScript definition previews, and unified or split diffs.
  • Repository setup and workspaces. Open an existing repository, drag repository folders onto the window, initialize a new one, or clone from a URL or GitHub repository name. Search recent repositories, keep several tabs open, reorder them, switch or reopen them with standard tab shortcuts, restore the last session and window layout, open the repository in a detected editor, terminal, or Finder, and recover a removed linked worktree by returning to its base repository.
  • Readable history. Browse a virtualized commit graph with local and remote branches, tags, linked worktrees, stashes, and working-directory rows. Search commits, select a range, inspect merge structure, and see staged, unstaged, untracked, and conflicted file counts before opening a diff.
  • Precise working-copy control. Stage, unstage, or discard files and individual diff hunks. File menus can stash, discard, ignore, copy the path, open or reveal the file, and jump to history or blame. Commit staged work, amend HEAD, edit the current HEAD message, or generate a message from the staged diff and recent repository style.
  • Pull-request review. Work from a GitHub inbox grouped by next action. Inspect status, checks, commits, threaded discussion, review history, merge conflicts, and image attachments beside the diff. Draft line or file comments and replies locally, then comment, approve, request changes, or merge with the methods enabled by the repository.
  • Pull-request worktrees and links. Open the exact pull-request head in an isolated managed worktree without switching the main checkout, then launch it in a detected editor or terminal. Copy a shareable Git Gud link to reopen the same review. Dirty managed worktrees are preserved instead of being removed.
  • Branches, remotes, and releases. Organize slash-delimited branch names as folders, create or rename branches, set upstreams, and push a selected branch without checking it out. Add, edit, fetch, rename, or remove remotes. Create annotated tags, use calendar-based tag suggestions, push a branch and its suggested tag together, and delete local or remote branches and tags with scoped confirmation.
  • Repository maintenance. Clean up old branches, stashes, and worktrees with simple rules or advanced search and selection. Review branch integration evidence, protect active work and mainlines, and confirm exact deletions with revision checks and retained recovery refs.
  • Sync and stash workflows. Choose fetch, merge-based pull, fast-forward-only pull, or rebase pull as the main sync action. Push the current branch, prune remote references, create selective stashes that include chosen tracked or untracked files, and apply, pop, or drop saved work.
  • Rebase and conflict recovery. Merge, cherry-pick ordered selections, revert, reset, and run standard or interactive rebases with reorder, reword, squash, fixup, and drop. The conflict resolver shows ours and theirs, supports per-marker choices and manual output editing, stages resolved files, and continues, skips, or aborts the active operation.
  • GitHub Actions and Portainer dashboards. Build profile-scoped dashboards from editable and reorderable tiles. GitHub Actions tiles can show recent runs for selected branches or tags, or group the latest workflow attempts for pull requests you authored. Open a run inside Git Gud to inspect its job graph, steps, and failed-step logs. Portainer tiles monitor Swarm and Compose stacks, replicas or containers, service health, and deployed images.
  • Codex and AI assistance. Install the Git Gud Agent Notes skill once, then let Codex attach occasional implementation context to changed lines from tasks started anywhere. Open selected diff lines as a prefilled Codex task without submitting it. Pull-request drafts can be copied as a bounded review prompt for use in Codex or another assistant. A locally installed Pi CLI powers optional background review walkthroughs and staged-diff commit-message generation.
  • Safety, profiles, and updates. Git mutations run in a per-repository queue with progress and cancellation. Destructive actions require confirmation, useful local operations record undo data, ignored local files are protected from overwrite, and rejected pushes can use a revision-checked force push with lease. Profiles isolate Git identity, signing, SSH, GitHub CLI settings, tabs, recent repositories, and dashboards. Packaged macOS releases update in the background and install only after an explicit restart.

More screenshots

Commit history

Read branches, remotes, tags, worktrees, stashes, and working-directory state in one virtualized graph without losing the selected commit's files and metadata.

Git Gud commit history, branch graph, and commit details

Live GitHub Actions dashboards

Create persistent dashboards for several projects, filter the runs shown by each tile, and see queued, running, and failed workflows update automatically. Open a run inside Git Gud to inspect its jobs, steps, and failure logs, or follow the link to GitHub.

Git Gud live GitHub Actions dashboard

Portainer stack monitoring

Monitor Swarm and Compose stacks alongside delivery workflows, including service health, replicas or containers, image freshness, and links back to Portainer.

Git Gud Portainer stack dashboard showing service health and image status

Syntax-highlighted diffs

Inspect a commit without losing graph context. Switch between unified and split layouts, or drill into working-directory changes for staging.

Git Gud syntax-highlighted unified diff

Command palette

Press ⌘ P to search actions, commits, branches, repositories, stashes, and worktrees from one keyboard-first surface.

Git Gud command palette searching for rebase workflows

Repository maintenance

Open Actions → Repository maintenance…, or search for maintenance in the command palette. The Simple view previews old merged local branches by default. Choose an age preset or a custom number of days, then enable any additional cleanup rules you want. Remote branches, likely integrated branches, age-only branch cleanup, stashes, and worktrees each require opting in. Valid age or comparison-branch changes refresh the preview automatically; Review cleanup… shows the exact items before deletion.

Switch to Advanced to inspect branches, stashes, and worktrees individually. Search and filter the table, use its header checkbox to select all eligible visible rows, or Shift-click a row or checkbox to select a range. Local and remote branches have separate lists. Enable Include not merged to review age-only branch cleanup, or Show protected and recent to see excluded items. Each cleanup handles up to 100 branches and 100 stashes and worktrees combined.

Equivalent patches can indicate rebase or cherry-pick, and an unchanged merge result can indicate a squash merge. These checks are evidence, not proof of a historical merge operation or preserved intent. Deleting such branches requires an extra acknowledgement. Old commit dates and missing upstream refs alone never establish integration.

Update remote branches fetches heads and prunes local tracking refs that disappeared from the server. It preserves local tags and local branches. Remote deletion is a separate review step that identifies the shared server branches being deleted. If the comparison branch advances while you review, cleanup checks the selection again against its newer history. Rewritten comparison history or changed selected branches stop cleanup; Rescan and review refreshes the selection for another review. Each server deletion carries the exact reviewed revision as a lease.

The comparison branch, main/master/trunk/develop/development/production/release branches, known remote default branches, and branches used by any worktree are protected. Set branch.<name>.deleteMerged=false in Git configuration to protect another branch. Remote cleanup requires a known default branch and one matching fetch/push destination.

Stash age is measured from when it was created. Worktree age uses its last checkout or commit event, falling back to the checked-out commit date when no activity record is available. Main, current, open, locked, dirty, missing, and unverifiable worktrees, plus worktrees containing submodules, cannot be removed here. Removing a worktree keeps its branch and commits but deletes its directory, including ignored files such as dependencies or build output; those files are not backed up.

Cleanup results include a retained recovery ref and a Copy restore command action for each deletion. These refs keep reviewed commits and stash changes reachable in this repository. Local branch configuration is retained for recovery. Run copied restore commands from the same repository; remote restoration refuses to overwrite a recreated branch. Backups remain until explicitly removed. See the research and alternatives for the tradeoffs and detection limits.

Requirements

  • macOS for the fully supported application build, or Windows x64 for the experimental portable build
  • Git available on PATH
  • Node.js ^20.19.0 or >=22.12.0
  • pnpm 11.9.0 (Corepack recommended)
  • GitHub CLI with a connected account (optional, for pull requests and GitHub Actions dashboards)
  • Codex desktop app (optional, for diff and pull-request review handoffs)
  • Pi CLI available on PATH, or configured through PI_EXECUTABLE_PATH (optional, for AI review walkthroughs and commit-message generation)
  • Portainer Business Edition API access (optional, for Swarm and Compose stack monitoring)

PR Bug finder

Run Bug finder beside AI brief in the PR dashboard, inspect findings with their code, and post only selected comments. Copy a self-contained prompt to discuss findings with another agent; the bundled local CLI lets that agent update the records in Git Gud. See Bug finder usage and CLI for setup, evidence limits, and revision checks.

AI brief and Bug finder use Pi's openai login. On macOS and Linux, Git Gud reads the login shell's Pi search path and PI_CODING_AGENT_DIR so desktop launches can find the same installation and login as the terminal. An explicit PI_EXECUTABLE_PATH in Git Gud's environment bypasses shell discovery; set PI_CODING_AGENT_DIR there too if that installation uses a custom agent directory. Authentication errors identify the executable and agent directory used. Compare these with your working terminal before signing in again; retrying an AI action rereads the shell configuration.

Codex Agent Notes

Agent Notes let Codex attach short implementation context directly to changed lines in Git Gud. Most tasks should produce no notes. A note is useful only when the diff cannot explain a constraint, behavior contract, or concrete risk that matters during review.

Open Settings → Codex and select Install skill. Git Gud installs the bundled git-gud-agent-notes skill in ~/.agents/skills, where local Codex clients can discover it for repositories opened anywhere. This feature does not depend on starting a Codex task from Git Gud.

After an implementation task, the skill asks Codex to inspect its finished diff and decide whether any note is warranted. When one is, the skill's bundled writer validates the changed line, captures a stable anchor, and stores the note in that worktree's Git metadata. Git Gud watches the repository and shows the note inline. Hiding a read note collapses it to a small marker that can be reopened later.

The integration is local and optional. Git Gud never changes a repository's AGENTS.md, never adds note files to the working tree, and leaves an existing unmanaged skill with the same name untouched. See docs/agent-notes.md for the exact authoring rules, command, storage behavior, and limitations.

Run from source

git clone https://github.com/Kaldy14/git-gud.git
cd git-gud
corepack enable
pnpm install --frozen-lockfile
pnpm dev

The app reads Git identity, authentication, and signing settings from the same places as the command line, including repository config, ~/.gitconfig, SSH agent state, macOS Keychain helpers, and configured GitHub CLI profiles.

Releases

Every pushed version tag matching v* runs the release workflow. The workflow derives the packaged application version from the tag, runs the full verification suite, and then publishes a GitHub Release containing:

  • An Apple Silicon (arm64) macOS application archive
  • An unsigned, portable Windows (x64) executable
  • A SHA-256 checksum for each release artifact

Intel macOS builds are disabled in GitHub Actions.

The macOS release archive is signed with a Developer ID Application certificate, notarized by Apple, and stapled before it is published. This allows Gatekeeper to verify the application when users install it, including when they are offline.

The release workflow requires these GitHub Actions secrets:

  • MACOS_CERTIFICATE_P12_BASE64: a base64-encoded, password-protected .p12 containing the Developer ID Application certificate and private key
  • MACOS_CERTIFICATE_PASSWORD: the .p12 export password
  • APPLE_API_KEY_P8_BASE64: a base64-encoded App Store Connect Team API .p8 key with App Manager access
  • APPLE_API_KEY_ID: the App Store Connect API key ID
  • APPLE_API_ISSUER: the App Store Connect API issuer UUID

The .p12 performs code signing. The App Store Connect .p8 key is separate and is used only to authenticate notarization. Configure these values under Repository settings → Secrets and variables → Actions before pushing a release tag.

To prepare a release, update CHANGELOG.md, make sure the release commit is on main, and push the next version tag:

release_tag=vX.Y.Z
git tag "$release_tag"
git push origin "$release_tag"

Build the macOS app locally

GIT_GUD_VERSION="$(git describe --tags --abbrev=0)" pnpm dist
open "dist/mac/Git Gud.app"

pnpm dist runs the full production build, assembles dist/mac/Git Gud.app, and applies an ad-hoc signature for local use. GIT_GUD_VERSION controls the version embedded in the application; without it, local builds use 0.0.0. To make a local Developer ID build, install the certificate in a keychain and set its identity before running the command:

GIT_GUD_VERSION="$(git describe --tags --abbrev=0)" \
  MACOS_SIGNING_IDENTITY="Developer ID Application: Your Name (TEAMID)" \
  pnpm dist

Set MACOS_SIGNING_KEYCHAIN as well when the identity is stored in a non-default keychain. Tag-driven builds import the certificate into an ephemeral CI keychain, sign with the hardened runtime enabled, notarize and staple the app, verify it with codesign, stapler, and syspolicy_check distribution, then package and publish it. The distribution check covers Gatekeeper and other macOS launch policies and reports specific failures before publication.

Development

Command Purpose
pnpm dev Start Electron with live reload
pnpm typecheck Check main, preload, and renderer TypeScript
pnpm lint Run ESLint across the repository
pnpm test Run the Vitest suite
pnpm benchmark:review Score review-chunk grouping against the benchmark datasets
pnpm test:maintenance Build and validate branch, stash, and worktree cleanup in the real Electron app using disposable repositories and agent-browser
pnpm build Typecheck and create production bundles
pnpm dist Build the local macOS application bundle
pnpm dist:windows Build the portable Windows x64 executable (on Windows)

Before opening a pull request, run:

pnpm typecheck
pnpm lint
pnpm test
pnpm build

Architecture

React renderer (sandboxed)
  ├─ TanStack Query for Git-backed reads
  ├─ Zustand for workspace state
  └─ @pierre/trees + @pierre/diffs for file review
              │
              ▼ typed window.api
Electron preload (context bridge)
              │
              ▼ validated IPC
Electron main process
  ├─ repository inspection and filesystem watchers
  ├─ per-repository mutation queue and progress events
  ├─ profile, workspace, dashboard, connection, settings, and undo persistence
  ├─ GitHub CLI-backed pull requests and Actions monitoring
  ├─ Portainer API-backed Swarm and Compose monitoring
  ├─ managed pull-request worktrees and external application launch
  ├─ Pi CLI-backed review guides and commit-message generation
  └─ system Git processes using the user's environment

The renderer has no Node.js access and never executes Git directly. Shared TypeScript contracts define the IPC boundary, while validation and repository-scope checks run in the main process.

See docs/README.md for the renderer map and graph model, docs/agent-notes.md for the Codex skill integration, PRODUCT.md for product principles, and PLAN.md for milestone history and deeper implementation notes.

Project scope

Git Gud prioritizes local repository work, with focused GitHub pull-request and Actions support through an already-connected GitHub CLI profile and optional Portainer stack monitoring. It does not host repositories, manage issues or teams, patch cloud services, or publish automated review comments. AI actions are opt-in: Git Gud can install its local Codex Agent Notes skill, run the locally installed Pi CLI for review walkthroughs and commit messages, open selected code in a prefilled Codex task, or copy local pull-request drafts as a prompt. It does not auto-submit Codex tasks or copied review drafts. Windows remains experimental, and Linux needs platform integration, packaging, and CI coverage before it can be supported.

Acknowledgements

Thank you to the GitKraken team for inspiring Git Gud's approach to visual history and everyday Git workflows. Git Gud is an independent project and is not affiliated with or endorsed by GitKraken.

Contributing

Issues and focused pull requests are welcome. Please keep changes small, include tests for Git behavior or parser changes, update documentation when user-visible behavior changes, and verify the checks above before submitting.

When reporting a bug, include the Git Gud action, expected result, actual result, macOS and Git versions, and a minimal repository shape when possible. Remove credentials, remote URLs, and private paths from logs before posting them.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages