No description
  • Svelte 41.7%
  • Rust 29.8%
  • TypeScript 12.9%
  • CSS 10.2%
  • JavaScript 3.6%
  • Other 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-25 15:08:10 +01:00
.gitea/workflows
cicd_tool
docs
public
scripts
src Merge remote-tracking branch 'refs/remotes/origin/main' 2026-11-25 15:08:10 +01:00
src-tauri
.gitignore
CHANGELOG.md
index.html
init-prompt.html
package-lock.json
package.json
PKGBUILD
PKGBUILD-bin
README.md
svelte.config.js
tsconfig.json
tsconfig.node.json
vite.config.ts

Gitty Logo

Gitty

A lightweight, modern Git client built with Tauri.

Fast, simple, and designed for developers who want a clean Git experience without unnecessary complexity.


✨ Features

  • 🚀 Fast native performance
  • 🌿 Branch management
  • 📝 Commit history
  • 🔄 Pull, Push & Fetch
  • 🔀 Merge & Rebase
  • 📦 Repository management
  • ☁️ GitHub, GitLab, Azure DevOps, Gitea, and Forgejo integrations
  • 🗄️ Git LFS detection, tracking and object management
  • 🧩 Submodule management, including nested repositories
  • 🎨 Modern and intuitive UI

Reviewing changes

The Changed lines dialog (stage/unstage individual lines) and the Compare changes dialog share the same diff controls:

  • Side by side / unified — the column icon in the header, or the S key, switches between the old and new version next to each other and a single column. Each dialog remembers its layout.
  • Ignore whitespace — the switch in the header, or the W key, hides lines whose only change is whitespace, such as tabs converted to spaces or re-indented blocks (git diff --ignore-all-space). The setting is shared by both dialogs and kept across restarts.
  • Word highlighting — when a removed line is replaced by a similar line, the part that actually changed is highlighted, including changed indentation.

Staging, unstaging and discarding keep working while whitespace is ignored: only the real changes are applied, and lines that differ in whitespace alone keep their current indentation. If a file has only whitespace changes left, the dialog says so and offers Show whitespace changes to stage them as well. Restoring lines from an older revision always uses the exact patch.


Branch workflows

Right-click another local or remote branch and choose Take files …:

  • Select files and use Take selected files to replace them with the source versions. Deletions are labelled; local edits prevent whole-file replacement.
  • On a modified text file, use the Select lines icon to take individual lines or hunks. Review both deletion and addition lines when replacing text.
  • Merge files … performs a three-way text merge using the common ancestor, your current working file (including local edits), and the source commit. The same workbench as normal conflict resolution provides the side-by-side comparison, current/incoming/both choices, manual editing and result preview. Prepare each conflicted file before applying the results. This supports regular UTF-8 text files with one common ancestor; binary files, symlinks, submodules, and custom merge drivers require whole-file transfer or a normal branch merge.

All three actions leave results unstaged and preserve the index and branch tip. Undo last file transfer in the dialog or branch context menu restores the last action's previous file contents. The per-worktree undo record survives restarts. It is replaced by the next transfer and refuses to overwrite later file edits, staging changes, or a changed branch/HEAD. This undo applies to file transfers, not full branch merges or branch cleanup.

Merge into current now calculates a preview before applying: affected files, resulting diff, predicted conflicts and fast-forward availability. The preview uses committed states, leaving the index and working tree unchanged. It requires Git 2.38 or newer. Local edits and repository changes after the preview can still prevent the actual merge.

Use the broom button in the Branches heading for Clean up branches. Choose a local base branch, review eligibility, then select references to delete. Only local branches whose commits are fully contained in the base are eligible; current/worktree branches, common main/release names and known remote default branches are protected. Squash-merged branches are conservatively kept when ancestry does not prove they are merged. Optional remote checking contacts the configured servers using Git's credentials and identifies stale local remote-tracking references. Custom fetch mappings or unreachable remotes are skipped with a warning. Server branches are never deleted. References and their commit IDs are checked again before the selected deletions are applied together.

Submodules

Cloning automatically downloads and initializes submodules, including nested submodules, at their recorded commits. The Submodules toolbar badge counts modules that still need initialization. After a successful pull, Gitty offers to initialize missing modules; choosing Later keeps the badge visible.

Open a repository and select Submodules in the repository toolbar. The dialog shows each submodule's recorded commit (from its parent's index), checked-out commit, and local changes. You can add a submodule, initialize it, check out its recorded commit, stage a changed reference, synchronize its URL from .gitmodules, or open it as a repository tab. Nested submodules are included by default. Use Change commit or tag to select a local tag or enter a commit hash; Fetch tags & commits downloads remote revisions using the submodule login. Checking out a revision leaves the parent index unchanged until you stage its reference.

Checking out a recorded commit is blocked when the submodule has local changes; commit or stash them in that repository first. Adding a submodule stages .gitmodules and the new reference. Commit these changes in the parent repository. Network operations use your configured Git credential helpers or SSH credentials.

📸 Preview

Screenshots comes later.


🛠️ Built With

  • Tauri
  • Rust
  • Svelte

🚧 Status

Gitty is currently under active development.

Contributions, feedback and feature requests are always welcome!


📄 License

MIT License


Arch Linux

Install Gitty from the AUR with an AUR helper:

yay -S gitty-desktop

To install the prebuilt native Arch package instead of compiling from source:

yay -S gitty-desktop-bin

Or build the AUR package manually:

git clone https://aur.archlinux.org/gitty-desktop.git
cd gitty-desktop
makepkg -si

The source recipe downloads the public Gitea release archive and builds Gitty. The -bin recipe repackages the native .pkg.tar.zst release artifact. The release pipeline updates both packages' versions, checksums, and .SRCINFO files.


Command line

Open an existing repository when Gitty starts:

gitty.exe --repo "D:\Projects\ExistingRepo"

Clone a remote into an exact local target folder and open it immediately:

gitty.exe --clone "https://example.com/team/project.git" "D:\Projects\Project"
gitty clone "git@example.com:team/project.git" "D:\Projects\Project"

--clone=<REMOTE> is also accepted. Relative target paths are resolved from the current working directory. Clone and repository requests are forwarded to the running window when Gitty is already open.

Open from Forgejo (Windows and Linux)

Gitty registers the gitty:// URL protocol for the current user. Install or update Gitty before using this clone-link template in Forgejo:

Gitty = gitty://clone?url={url}

The repository URL must be URL-encoded when substituted into {url}. For example: gitty://clone?url=https%3A%2F%2Fforgejo.example%2Fteam%2Frepo.git. The link opens Gitty's Clone dialog with the URL filled in; choose a destination and confirm Clone. It also works when Gitty is already running. HTTPS, HTTP, SSH, Git, and git@host:path remotes are accepted. Browser links cannot supply clone flags or a destination. The browser may ask permission to open Gitty.

How the protocol gets registered depends on the platform:

  • Windows: the installer registers it; uninstalling removes it and updates preserve it.
  • Arch Linux (gitty-desktop, gitty-desktop-bin): the package's desktop entry declares x-scheme-handler/gitty, so it works right after installing. Packages built before this change need the next release.
  • AppImage: there is no installer, so Gitty writes ~/.local/share/applications/gitty-url-handler.desktop pointing at the AppImage at startup (and rewrites it when the AppImage path changes). It then runs xdg-mime default gitty-url-handler.desktop x-scheme-handler/gitty. Delete that file to remove the registration; start Gitty once from its new location after moving the AppImage.

If a link does nothing on Linux, check the handler with xdg-mime query default x-scheme-handler/gitty. Sandboxed browsers (Flatpak, Snap) may not be allowed to launch host applications.


Git hosting integrations

Gitty connects to GitHub, GitLab.com, GitLab Self-Managed, Azure DevOps, Gitea, and Forgejo from Settings → Integrations. Each connection uses a personal access token that is stored in the operating system keychain instead of application settings. Azure DevOps can manage multiple organizations with separate URLs, usernames, and tokens.

For Forgejo, enter your instance URL (for example https://codeberg.org) and a personal access token from Settings → Applications. Board discovery and import require the server to expose the Projects/Columns API.

After enabling a connection, open Clone → Integrations to load the repositories available to that account. Repositories are sorted alphabetically and can be filtered, refreshed, selected, and cloned directly with the stored credentials.


Git LFS

Gitty bundles the git-lfs executable in its desktop installers and checks it at runtime before offering LFS actions. Arch packages also declare git-lfs as a dependency so Git hooks and command-line workflows outside Gitty use the same extension. The repository toolbar exposes LFS setup, tracked patterns, object downloads, and safe cache pruning. After every successful clone or pull, Gitty detects LFS usage and automatically downloads the required LFS objects with the same remote and credentials, so no second pull is needed. Fresh clones also get repository-local LFS filters and the pre-push hook before they are opened.

Tests

Run npm ci followed by npm test to execute the Svelte/TypeScript checks, all JavaScript tests in scripts, and all Rust workspace tests. The Rust tests require Git, Git LFS, and the native Tauri build dependencies. Git LFS is prepared automatically before the Rust tests. Individual suites are available through npm run test:frontend and npm run test:rust.

Both Gitea workflows (publish and test build) run this suite in a native Linux test job before any installer build begins. A failing test prevents dependent build and publishing jobs from running. Platform-specific Windows exclusions remain in effect locally; those Git tests run in the Linux CI job.

Nightly updates and the rolling release

Enable Settings → General → Updates → Receive Nightly updates to receive Nightly builds in addition to stable releases. The existing prerelease preference is retained automatically. A newer stable build may supersede a Nightly without changing your channel preference. Turning Nightly off never downgrades the app; it waits for a newer stable release. Linux's built-in updater remains disabled: download the AppImage from the Nightly release or use your package manager.

The nightly workflow runs daily at 02:00 UTC and can be started manually. It always tests the repository's default branch, pins that tested commit for both builds, and skips the installer builds if that commit/base version was already published. It builds signed Windows NSIS and Linux AppImage installers in one job and publishes only after both builds succeed.

There is exactly one rolling Gitea/Forgejo release and tag, nightly. The publisher creates it once and updates that same release thereafter. Its visible name is always Nightly. The app and update notification show the stable base, e.g. 2026.11.3 · Nightly. The pipeline embeds that base separately as VITE_NIGHTLY_BASE_VERSION and publishes it as nightly_base in the manifest; it is never used for update comparisons. Older manifests without this metadata show only Nightly. Installer versions remain unique, e.g. 2026.11.10-nightly.1794182400000000. The numeric suffix is a monotonic timestamp-based build ID, not SemVer build metadata. The base is one patch above the highest stable/RC version in the repository tags or checkout configuration, and never below the previous Nightly base. This also allows existing RC installations to upgrade (a Nightly at the same base would sort below an RC). To graduate that base, publish a normal stable release, e.g. 2026.11.10. Nightly then advances to the next base.

Downloads are uploaded to immutable <version>/<filename> object paths. Only then is the complete two-platform nightly/latest.json published. The legacy prerelease/latest.json gets the same manifest so existing RC clients can migrate. The stable latest.json, stable releases, AUR packages, and legacy buckets are not modified by Nightly publishing. Old RC releases remain historical releases; no new RC releases are generated. Superseded Nightly release attachments are removed after successful publication. Old Nightly object downloads are retained for seven days to serve previously offered updates.

Publishing uses workflow concurrency plus an atomic server-side branch lock named gitty-nightly-publish-lock. The publisher refuses older versions and non-descendant commits, preventing a delayed build from overwriting newer code. A failed build never publishes. Upload failures preserve the previous updater manifest; subsequent runs can repair an interrupted publication. Because Gitea and S3 are separate services, release metadata and both manifest aliases are updated sequentially, not as a cross-service transaction.

The workflow reuses ACTIONS_TOKEN (falling back to the workflow token), Tauri signing secrets, and MINIO_ENDPOINT, S3_BUCKET, ARTIFACT_BASE_URL, S3_ACCESS_KEY, S3_SECRET_KEY. The publishing token needs permission to create and delete the lock branch, update the nightly tag, and manage release assets. If a runner is forcibly terminated while holding the lock, verify that no publisher is running before deleting only gitty-nightly-publish-lock and retrying the workflow. The lock is deliberately never stolen automatically.

No release is published merely by changing these files. Merge the workflow into the default branch, then run nightly manually or wait for its schedule.

API reference: Gitea release API. Version reference: Semantic Versioning.