A fast, open-source graphical git client, written in pure Rust.
See every branch at once in a commit graph, stage single lines, commit, branch, merge, rebase
and push, on Windows, macOS and Linux. Big repositories open instantly.
GitCraft reads the whole history in-process with gitoxide and only lays out and reads the rows on screen, so the size of a repository hardly matters. Measured on git.git (86,267 commits, every branch and tag):
| GitCraft | for comparison | |
|---|---|---|
| Open the whole history and lay out the graph | 0.08 s | git rev-list --all --date-order: 0.09 s |
| The same without a commit-graph file | 0.58 s | git rev-list: 0.61 s |
| Read and lay out one screen of commits | 0.1 ms | |
| Lay out 200,000 commits on 12 branches | 12 ms |
Measured with cargo bench on an Intel Core i9-14900K. Every pull request runs the same
benchmarks against the main branch, and one that makes GitCraft slower does not get merged.
GitCraft is young. This is what it does today; ROADMAP.md has what comes next.
- Start: open a folder, clone from a URL with git's progress as it goes, or create a new repository.
- Tabs: keep several repositories open at once; they open again where you left them.
- Live: what you change in an editor, a build or a terminal shows up by itself; files git ignores do not wake it.
- Graph: every branch, remote branch and tag in one graph, children above parents, with branch and tag labels and the uncommitted changes on top. Lines that head for the same commit share a lane and the lanes close up when a line ends, so the graph stays narrow; each line keeps a colour of its own. Beside each author is an avatar with their initials, coloured by their email address and made on the spot, so nothing goes over the network. Arrow keys walk it. Drag the borders between the names of the columns to make the branches and tags, the graph or the author wider or narrower, and double-click one to put it back; the widths stay for the next run.
- Search: press Ctrl+F (Cmd+F on a Mac) and type part of a message, an author's name or email address, the start of a SHA, or a branch or tag name. The graph goes to the first match and dims the rest; Enter goes to the next match and Shift+Enter back. A branch or tag with exactly that name comes first, so typing its name takes you there. Large histories are searched as you type, without the window waiting.
- Commits: message, author, parents and the files they changed, with the diff of each file.
- Diffs: code has the colours of its language, some fifty of them from Rust and C to Python, JavaScript, PHP and Go, and a line in a comment or string that started above the change is coloured as one. In a line that changed, the words that changed stand out, so a renamed variable or a new argument is easy to spot. "Side by side" puts the old version on the left and the new one on the right, each changed line facing the line that replaced it; you stage or discard lines from either side the same way, and the choice stays for the next diff and the next run. A picture (PNG, JPEG, GIF, WebP, BMP or ICO) shows its old and its new version next to each other, with their size in pixels and bytes.
- File history: right-click a file, in a commit or in your changes, for every commit that changed it, newest first, also from before it was renamed. Pick one to see its diff of the file, with the commit beside it. Following a file through a large history happens in the background.
- Blame: right-click a file for who last changed each line, and in which commit, beside the lines. From your changes it is the file as it is now, with the lines you have not committed yet, and it keeps up as you edit; from a commit it is the file in that commit. Click a line to see its commit and every other line it changed.
- Staging: stage or unstage files, whole hunks or single lines, then commit or amend.
- Discard: throw away the changes to a file, a hunk or single lines, after you confirm.
- Branches and tags: create, check out, merge, rebase, delete, from the sidebar or a right click.
- Commits from the graph: check out, cherry-pick, revert, reset (soft, mixed, hard), copy the SHA.
- Interactive rebase: right-click a commit to rebase onto it, and put the commits after it in a new order (with the arrows or by dragging), give them a new message, squash or fix them up into the one below, or drop them, before you start. Or drag a commit in the graph onto another to move it to its place, or pick "Reword commit…" from its menu: the rebase opens with that done.
- Remotes: fetch, pull and push, with how far ahead and behind you are. A branch that went its own way, after an amend or a rebase, is force pushed with a lease, so nobody else's work is lost. Right-click Pull to pull with rebase, or Push to push to another remote, force push or push your tags. The sidebar shows each remote with its branches: add one (its branches are fetched at once), or right-click it to give it another name or URL, or to remove it.
- Passwords: when git or ssh needs a username, a password or the passphrase of your key, for a clone, a fetch, a push or a signed commit, GitCraft asks for it in a dialog. With a credential helper set up, git remembers what you type, as it does on the command line.
- Stashes: stash, apply, pop and drop.
- Conflicts: when a merge, rebase, cherry-pick or revert stops at a conflict, a bar says so and counts the conflicted files. Open a conflicted file to go through it conflict by conflict, with your side and theirs next to each other and the result below: take ours, theirs or both, and save. Or take a whole file from one side (also when one side deleted it), or edit it and mark it resolved; then continue, skip the commit, or abort.
- Undo and redo: take back a commit, an amend, a checkout, a merge, a pull, a rebase, a cherry-pick, a revert or a reset, one step at a time, and do it again. It reads git's reflog, so it works for what you did on the command line too. Undoing a commit puts its changes back in the index; your uncommitted work stays where it is.
- Keyboard: press Ctrl+Shift+P (Cmd+Shift+P on a Mac) and type a few words of what you want to do: every button of the toolbar and its menus, the tabs, cloning and creating a repository, and everything the right-click menu of the selected commit and its branches and tags offers. Up and down pick one, Enter runs it. The common ones have a shortcut of their own, shown in the palette and on the buttons: Ctrl+Z and Ctrl+Shift+Z undo and redo, Ctrl+Shift+F fetches, Ctrl+Shift+Down pulls, Ctrl+Shift+Up pushes, Ctrl+B makes a branch, Ctrl+Shift+S stashes, F5 refreshes, Ctrl+Enter commits, Ctrl+O opens a repository, Ctrl+T, Ctrl+W and Ctrl+Tab open, close and go through the tabs. In a diff, Ctrl+S stages, Ctrl+U unstages and Ctrl+Backspace discards the lines you picked, or the whole file while you picked none; once a file has nothing left to stage, the next one shows. Ctrl+Down and Ctrl+Up go to the next and the previous file of the panel on the right, and Escape goes back to the graph. While you type in a field, the field keeps its keys, apart from Ctrl+Enter.
- Settings: Settings, at the right of the tabs, or Ctrl+, (Cmd+, on a Mac). Zoom everything larger or smaller (Ctrl+Plus, Ctrl+Minus and Ctrl+0 do that anywhere), pick the dark or the light theme or the one your system uses, show dates as how long ago or as the date and the time, hide the avatars, and have Pull rebase rather than merge. They hold for every repository and stay for the next run.
- Safe by default: a hard reset, deleting a branch with commits no other branch or tag has, a force push, dropping a stash and removing a remote all ask first, saying what will be lost.
GitCraft runs your own git for everything that changes a repository, so your config, hooks,
credentials and commit signing work exactly as they do on the command line.
GitCraft needs git 2.32 or newer on your PATH.
Each release comes for Windows, macOS and Linux, on x86-64 and on ARM:
- Windows: an installer (
gitcraft-v…-x64.msi, or-arm64.msi) that puts GitCraft in the Start menu. - macOS: GitCraft.app in a disk image (
gitcraft-v…-arm64.dmgfor Apple silicon,-x86_64.dmgfor Intel). Open it and drag GitCraft into Applications. - Linux: a Debian package that puts GitCraft in the menu
(
sudo apt install ./gitcraft-v…-amd64.deb), an AppImage that runs without installing, and a Flatpak (flatpak install --user gitcraft-v…-x86_64.flatpak, or-aarch64) that takes its runtime from Flathub.
Every release also has the program on its own in an archive, for each system.
The Flatpak brings its own git and runs it in its sandbox. Your git config and ssh keys work there, but hooks, credential helpers and GPG signing that need programs from your system do not; for those, use the Debian package or the AppImage.
The Windows and macOS downloads are not signed with a certificate yet, so the first time you open them the system asks whether you trust them:
- Windows: when SmartScreen says "Windows protected your PC", click More info, then Run anyway.
- macOS: when macOS says it could not verify GitCraft, click Done, open System Settings › Privacy & Security, scroll down to the line about GitCraft and click Open Anyway. From then on it opens like any other app.
To build it yourself, install Rust and run:
cargo install --git https://github.com/Lars-/gitcraft gitcraft
gitcraft path/to/repositoryContributions are very welcome: bug reports, ideas and pull requests. Read CONTRIBUTING.md first; the short version is that every change comes with tests, does what it does in as little code as possible, and does not make GitCraft slower.
GitCraft is licensed under either the MIT licence or the Apache License 2.0, at your option. Unless you say otherwise, any contribution you submit is licensed the same way, without extra terms.
GitCraft is an independent project and is not affiliated with GitKraken or Axosoft.
