Gittan
Download

All features

Everything Gittan does

What only Gittan has, what is new this autumn, and the whole workflow, the diff and the history, with the screenshots. Then how to build it yourself.

Only here

What I haven't found anywhere else

Most of what Gittan does, every git client does. These things I have not found in TortoiseGit, SourceTree, Fork, GitKraken, Tower or the git views of the IDEs, as far as I have looked. If you know one that has it, tell me and I will take the line out.

Put a change into the commit it belongs to

Hover a change and press Put into Its Commit: Gittan finds the commit of your branch that last wrote those lines, asks, and folds the change into it. Commit > Put Changes into Their Commits… does it for everything at once, each change with its commit, or why it cannot be placed. The round of small fixes after a review ends up in the commits they fix, not in a “fixes” commit on top. Pushed commits are never rewritten, and Branch > Undo takes it back. The command line has git absorb for this; no client I know has it.

See it in the change view

The dialog Put Changes into Their Commits: fifteen changes listed, src/App.vue:7 ticked and going into 3bc4f5e Load the sample trails on start, src/components/TrailCard.vue:70 ticked and going into 4da5e9c Say what unit the climb is in, the rest unticked with the reason, such as its lines were last changed before the branch, 2 of 2 ticked, and Cancel and Put 2 buttons

A merge preview before you merge

The row that says your branch is behind main also says whether merging main would go through: “merges cleanly”, or “conflicts in TrailList.vue”, worked out in memory before you press Merge or Rebase. Nothing in the work tree is touched to find out. Needs git 2.38 or later.

The summary of trailhead-maps on offline-maps: 4 commits behind origin/main, conflicts in TrailList.vue in red, and Rebase and Merge buttons

What changed in the dependencies since the last release

View > Project reads the project the way its own tools do, for Lazarus, Node, Rust, Go and Python, and compares it with the newest tag: each dependency with the version asked for, the version the lock file resolved, and what changed since the tag, added, removed or 3.5.13 → 3.5.17. A Lazarus project shows its build modes with a Build button each, and where every package comes from: a package file in the repository, a submodule at a tag, Lazarus itself, or nowhere. Under it are the mistakes that end up in commits, such as a session file, build output or a virtual environment, each with a button that ignores it.

See the whole page

The Project page of trailhead: Node, package.json, 0.1.0, 7 dependencies, 4 changed since v0.1.0; npm as the package manager with an Install button, and the dependencies with the version asked for and the version resolved: @vueuse/core added, vue from 3.5.13 to 3.5.17, vite from 6.3.5 to 6.4.1 and vue-tsc from 2.2.8 to 2.2.10

Time-lapse

Go > Time-lapse plays a file through every version it has had, oldest first, the lines each commit brought in lit up, with a track to scrub. A file's history as a film rather than a list. See it

Code History under the lines

Go > Code History lays the earlier versions of the selected lines, or of the function the caret is in, under them, one color per commit, the changed words shaded. The past of a function, read top to bottom in place. See it

Reviewed, and gone

A change you have read and accepted gets Reviewed and turns into plain code for the rest of the session, so the diff shrinks to what you have not looked at yet. The file and git are not touched; a long review is worked through like a checklist.

Undo for what git did

Branch > Undo takes back a commit, an amend, a merge, a reset, a rebase, a switch, a deleted or renamed branch, named after what it was (“Undo Merge feature/x”), and Redo does it again. It follows what git did in a terminal too.

No index to think about

Gittan never says “staged”. A commit takes the files you ticked, whole, as the diff shows them, and a change or a few lines can be left out and stay in the file. The index still exists for git's sake; you do not have to know.

Search for the commit that changed a text

The graph filters as you type: author:, since:, path:, and change: for the commits that added or removed a text or matched a /regex/, which is git log -S and -G with a text field. See it

Symbols in a diff

The gap rows of a diff name the function the next change is in. Go > Changed Symbols lists the functions a diff touched, Callers of Changed Symbols who calls them, and F12 goes to a definition, with no IDE and no language server.

AI with the agent you already have

Turn it on and pick Claude Code or GitHub Copilot: Gittan runs the tool you are signed into, with no account of its own. A review comes back as cards under the lines, beside a pull request's comments, with a Fix button on each. The agent gets no tool that writes or goes to the network. See it

Markdown, HTML and SVG drawn, changes marked

View > Preview draws the file beside its diff with the changed parts marked on the drawn page, and no browser engine inside. A .po file shows as originals and translations row by row, a changed image as two pictures at one scale. See it

Small things. Scroll past the end of a file and the next changed file is pulled in. Git flow without the git-flow command, on the same config it writes. A Git LFS file shown as the file, not the pointer, with its locks. Several gh accounts, switched from the settings. A branch's worktrees as tabs. Extensions that can stop a commit, a push or a pull with a reason, more below. Native on macOS, Windows (x64 and Arm), Linux (x64 and Raspberry Pi) and Haiku, from one code base.

What's new

What's new

Gittan has grown a lot this autumn. These are the larger additions, the newest first; the tour and the workflow below show most of them in place.

Summarize the changes

With the AI features on, AI > Summarize Changes, or ✦ Summarize at the top right of the summary, has the agent say what the changes shown amount to: the commits since what you compare with, or what is not committed yet. The answer stays in a panel over the window, with Copy, and each commit it names is a link to it. The AI menu holds every AI feature in one place. See it

A menu bar when you want one

On Windows and Linux, Alt or F10 shows a menu bar at the top of the window, as in Firefox: Left and Right move between the menus, and Alt with a letter opens that menu at once. It goes again when you are done, or View > Menu Bar keeps it shown.

Haiku package, FreeBSD build

On Haiku, pkgman install takes Gittan as a package that brings Qt 6 and git with it and puts Gittan in the Deskbar menu. FreeBSD 15.1 or later on amd64 has a build of its own, on GTK 3. Download

Push without hooks

When a pre-push hook refuses a push, the notice offers Push Without Hooks, for that push alone; Repository > Push Without Hooks does the same. When the hook is Git LFS's, Gittan warns first that the LFS files would not be uploaded.

Signed commits

A shield beside each signed commit in the graph and on its card: verified, bad, or a key not known here, which the card explains. Set up signing with an SSH or GPG key in the Name and Email dialog, Test it first, and trust a key not known here on GitHub's word. See it

Fast-forward, merge or squash

Merging a branch asks how, and says how many commits come in: Fast-forward when your branch has none of its own, else Merge Commit, or Squash, which stages the changes for one commit of yours. See it

Images four ways

A changed image side by side, swiped with a divider to drag, as onion skin with an opacity to set, or as the difference, where two images of one size differ. See it

Batch

A tab of the GitHub view for work in several repositories at once, with or without GitHub: what is left undone in each, branches whose remote branch is gone, who each one commits as and whether it signs, and maintenance. See it

Put into its commit

A change goes into the commit of your branch that last wrote its lines, as git absorb does, without the command: a pill over a block, or Commit > Put Changes into Their Commits… for all of them. See it

Project page

View > Project shows what the repository is as a project, for Lazarus, Node, Rust, Go and Python: its dependencies against the lock file and the newest tag, a Lazarus project's build modes and packages, and the files that should not be committed. See it

Commands in TOML

A repository's own commands are .gittan/commands.toml, and every .toml in .gittan/commands/: a description for the tile, a question before it runs, a line per system, hidden ones. The commands of the project's tools are listed too, grouped by name. See it

Git flow

Branch > Git Flow sets it up, then starts and finishes features, releases and hotfixes: finishing merges the branch where it belongs, tags a release and deletes the branch. Plain git does it, in the git-flow command's own settings, so the command need not be installed and the two share a repository.

Repository list

The welcome view keeps your repositories in folders of your own. Drag a recent one in, add every repository in a folder at once, and drag rows to order them. File > Repository List shows it in a tab.

Issue links and notes

An issue named in a commit's message is a link in its card: #123 opens the issue on GitHub with no setup, and File > Issue Tracker… sets any other tracker, in the bugtraq keys other git clients read too. Add a note to a commit (git notes), and the graph's search finds it.

Will it merge?

When your branch is behind main, the row that says so also says whether merging main would go through cleanly, or which files would conflict, before you press Merge or Rebase. Needs git 2.38 or later.

Extensions

A JavaScript file in the extensions folder adds commands to the menus and the command palette, can stop a commit, a push or a pull with a reason, and puts cards under the lines of the change view. Gittan asks before one may read your repositories, go to the network or run programs. More below.

Tabs

One window holds several repositories, each in a tab: ⌘T opens one, ⌘1 to ⌘9 pick one, and tabs of folders with the same name are told apart by their parents. Back and Forward (⌘[ and ⌘], chevrons in the title bar) step through what a tab has shown, as a browser does.

Command palette

⌘P lists every action the menus offer right now. Type a few words in any order, and the ones you used last come first. Undo, Redo, Stash, Pull, Push and New Branch stand beside it as buttons.

Undo and Redo

The Branch menu takes back what last moved a branch, and does it again: a commit, an amend, a merge, a cherry-pick, a reset, a pull, a rebase, a switch, a branch made, deleted or renamed, whether Gittan or git elsewhere did it.

Merge editor

A conflicted file in three panes, ⌘⇧E: yours and theirs side by side, the result under them, and the base, what both started from, between them when you want it. Tick the lines to keep from either side, one conflict at a time, and Save writes the result.

Time-lapse

⌘⌥H plays a file through its history, oldest first, each version with the lines its commit changed marked. Pause, step, or drag the track.

Worktrees

Branch > Worktrees… lists the repository's worktrees and opens one in a tab, and adds, locks, removes and prunes them.

Pull requests everywhere

The globe at the top right shows your pull requests on GitHub across every repository, the ones you wrote and the ones waiting for your review, and counts those waiting for you. Each card has its next step as a button, Review or Merge; presets, one Filter menu and a search keep the list short. Approve, ask for changes, comment and merge from Gittan, open a new one with Branch > Create Pull Request…, and switch between your gh accounts. See it

Git LFS

A file in Git LFS shows as the file it stands for, not the pointer, with a Download button for a version not fetched. Who holds which lock is read from the server, and Lock File and Unlock File are on the file menu.

Commit line by line

Leave Out of Commit works on the lines you select as well as on whole blocks. commit.template fills the message, and Sign Off and Skip Hooks sit after Amend.

Fixup, and drag to merge

Fixup with the Ticked Files on a commit makes a fixup! commit for it, and Fold It In… rebases it in. Drag a commit onto your branch's row in the graph to merge it.

Bring your own agent

Still off until you turn it on, and nothing is sent until you ask. Besides Claude Code and GitHub Copilot, it can now be any OpenAI-compatible API with your own key, or a local Ollama, so your code never leaves your computer. Turned on, the agent can also resolve a conflict, split the changes into commits, fix a review finding, explain how a few lines came to be and find where something is.

Workflow

Commit, sync and merge

Gittan started as a viewer, and it still puts the diff first. Now the work that follows happens there too. Anything that would throw work away asks first, and nothing gets merged or rebased unless you ask for it.

Commit from the tree: tick the files that belong together, write the message under them, and commit with ⌘↩. Leave Out of Commit leaves a block of a file out, or only the lines you select, so here the favourite button waits for the next commit along with README.md.
TrailCard.vue changed in the diff view with the button block left out of the commit in a muted tint and Reviewed, Include in Commit, Put into Its Commit and Discard pills over it, the file's box in the tree half ticked, README.md unticked, Include All in the file header, and the Commit section with a message and the Commit button
Put Changes into Their Commits… in the Commit menu folds each change into the commit of your branch that last wrote its lines, as a fixup commit rebased in at once: here a fix in App.vue goes into Load the sample trails on start and one in TrailCard.vue into Say what unit the climb is in, both not pushed yet, while the changes to older lines stay in the work tree, each with its reason. Put into Its Commit over a block does it for one change. Branch > Undo takes it back.
The dialog Put Changes into Their Commits over the diff of TrailCard.vue: fifteen changes, src/App.vue:7 ticked going into 3bc4f5e Load the sample trails on start and src/components/TrailCard.vue:70 ticked going into 4da5e9c Say what unit the climb is in, the others unticked with the reason, 2 of 2 ticked, a note that the commits after the oldest one changed are rewritten and Branch > Undo takes it back, and Cancel and Put 2 buttons
Pull, push and fetch sit in the middle of the status bar, and drop up from the ahead and behind counts: two commits to push, one to pull. Force Push takes the lease, and says how many of the remote's commits it replaces. A push shows its hooks as they run, and what went through in a green banner.
The list over the status bar with Pull (one behind), Push (two ahead), Force Push replacing one, Fetch and Commit Graph
The branch list makes a new branch and offers to delete the one whose remote branch is gone. A right click on a branch merges it, rebases onto it or compares with it, in either direction, and sets what it tracks.
The branch list under the summary title with New Branch, Delete Gone Branches and elevation-chart marked deleted on remote, and the menu of offline-maps with Merge offline-maps into main highlighted
Stashes sit in a chip in the status bar, each with its branch, its age and whether it took untracked files along. Pick one to see what it holds, compared with the commit it was made on, and the cross by its name in the status bar goes back to the work tree; a right click applies, pops or drops it, or makes a branch from it.
The stash list over the status bar: Stash Changes, then Chart legend on elevation-chart two weeks old with untracked files and Try a dark map style on main two weeks old, the latter checked; the summary shows that stash's one changed file against its base, and the status bar reads vs stash: Try a dark map style with a cross
Worktrees: Branch > Worktrees… lists the repository's worktrees with their branches and opens one in a tab of its own, so another branch can be worked on without stashing. It adds, locks, removes and prunes them too.
The worktree trailhead-maps on offline-maps open in a second tab beside trailhead, with the worktree list showing Add Worktree, trailhead on main as the repository and trailhead-maps on offline-maps as this one, over the row saying four commits behind origin/main
The repository list in the welcome view keeps your repositories in folders of your own, folded or open, over the ones you opened last. Drag a recent one into a folder, or add every repository in a folder at once with the +; File > Repository List shows it in a tab.
The welcome view with Open Repository, Clone and Init, then the repository list: the folder Trailhead open with trailhead, trailhead-api and trail-icons, the folders Work and Open source folded, and under it Recent with trailhead and notes
Rebase interactively from any commit in the graph: pick, reword, edit, squash, fixup or drop each commit after it, move them up and down, and rewrite a message in place. No editor opens while it runs, and Gittan says first when commits you already pushed are in the list.
The dialog Commits of main after 241f7b2: five commits newest first, the top one set to Reword with its new message Say that the climb is in metres in the field under the list, the next set to Edit and three left as Pick, Move Up and Move Down buttons, and a note that three of the commits are pushed already, so the next push must be forced
Bisect starts from a commit's menu. The graph marks the good and bad commits, and the Commit section says which commit to test now, how many are left and about how many steps, with Good, Bad and Skip buttons, until the first bad commit is found.
The commit graph during a bisect: main marked bad, two older commits marked good, and HEAD on Update Vue and Vite, add VueUse, the commit to test; beside the graph the Commit section's note with Good, Bad and Skip buttons, and Bisecting in the status bar
Clean shows what git clean would delete before it does: untracked files, ignored ones or both, each with a check box. Here the build output and a log go, while .env.local and a new folder not added yet stay.
The Clean dialog set to untracked and ignored files: dist, node_modules and npm-debug.log ticked, .env.local and src/composables unticked, 3 of 5 ticked, a note that git keeps no copy, and Cancel and Delete 3 buttons
Merging a branch asks how, and says how many commits come in. A branch with no commits of its own since the two parted offers Fast-forward, Merge Commit and Squash; one with commits of its own Merge and Squash. A squash stages the changes with git's message in the Commit section, for one commit of yours.
The question Merge walking-pace into main? It brings 2 commits, and main has none of its own since they parted, so it can move forward to walking-pace with no merge commit; Squash stages their changes for one commit of yours, written in the Commit section; with Merge Commit, Squash, Cancel and Fast-forward buttons, over the summary of trailhead
The GitHub view, the globe at the top right, lists your open pull requests across every repository, and those waiting for your review on the next tab, counted on the globe. The glyph turns red when changes are asked for or checks fail and yellow while checks run, and a card has its next step as a button: Merge, with the three ways to merge, on one that is approved with its checks passing. Presets, one Filter menu and the order take a row; ⌘F searches, and the arrow keys move from card to card.
The GitHub view of maja-lindqvist, 5 open and 3 to review: the presets All 5, Needs me 2, Waiting on others 2 and Ready to merge 1, a Filter menu, Last updated and a search field; cards for #47 Estimate the walking time on descents with a yellow glyph, Waiting for sam-okafor and 1 of 3 checks pending, #42 Cache map tiles for offline use, Approved with 3 checks and a Merge button, #45 Draw the elevation profile with a red glyph and Changes requested, #8 Rate-limit the forecast endpoint in trailhead-api with 1 of 2 checks failing, and the draft #12 Add a bridge icon in trail-icons, each with three dots for its menu
The Batch tab works in several repositories at once, picked from the repository list, with or without GitHub. Overview says what is left undone in each: changes, stashes, commits not pushed, a branch on no remote, a merge stopped halfway. Gone branches, Identity (who each commits as and whether it signs) and Maintenance are the other operations. Repositories that share a folder name are told apart by their parent folders.
The Batch tab: 5 of 5 repositories picked, Projects/trailhead, clean/trailhead, conflict/trailhead, preview/trailhead and trail-icons-work; the pills Overview, Gone branches, Identity and Maintenance; Check 5 repositories, 4 of 5 have something left; and a card per repository with its changed and untracked files, stashes, commits not pushed and a branch on no remote, conflict/trailhead in the middle of merging
Signed commits get a shield before the id: filled with a check when git vouches for the signature, red for a bad one, outlined for a key not known here, so a commit is never passed off as unsigned. Verifying runs in the background; the card of the commit says whose key it was, and for a commit signed on GitHub, Trust github.com's keys fetches the signers' keys.
The commit graph of trailhead with a shield before each signed commit's id: filled green with a check on the commits of Sam Okafor and Maja Lindqvist, whose SSH keys are in the allowed signers file, outlined on Inés Moreau's, signed with a key not known here, and none on the oldest commits, which are not signed
A merge that stopped turns the status bar's button into Resolve 2 conflicts, and each conflicted file in the summary gets a Resolve pill. Your side, the base and theirs each get a color, a fork button on each conflict resolves that one alone, and Use Mine, Use Theirs, Mark Resolved and Merge Editor sit in the file header, while the Commit section waits with Commit Merge, Abort and Next Conflict.
TrailCard.vue in conflict while merging offline-maps: three conflicts with the HEAD side tinted blue, the base gray, the offline-maps side amber and the markers violet, a fork button on each, Use Mine, Use Theirs, Mark Resolved and Merge Editor in the file header, 1 of 3 conflicts in the navigator, a red note with Next Conflict under the Commit section, and a red Resolve 2 conflicts button beside Abort over Merging in the status bar
The merge editor (⌘⇧E, or Merge Editor in the file header) lays a conflicted file out in panes: yours and theirs side by side, the result across the width under them, and with Show Base what both sides started from between them, row for row. Each conflict is headed by a fork and the side's name. Tick the lines to keep from either side, conflict by conflict, and the result follows; Save writes it and marks the file resolved once no conflict is left. The merges Gittan runs write the base into the markers.
The merge editor on TrailCard.vue with the base shown: Mine at HEAD, Base at 241f7b2 and Theirs on offline-maps side by side, each conflict headed by a fork, Conflict 2 of 3 and the side's name as a pill, the second conflict with no lines in the base and the third with the stats line both sides started from, check boxes on each side's lines, Hide Base in the header, and the Result pane under them, 1 of 3 conflicts resolved, with the third conflict's markers holding the base's line
A right click in the commit graph branches or tags from a commit, merges it, cherry-picks or reverts it, resets the branch to it, rebases from it, makes a fixup commit for it from the ticked files, browses its files, writes it as a patch or starts a bisect there. Mark one commit, and Compare with Marked on another shows what changed between the two.
The commit graph with the menu of Update Vue and Vite, add VueUse: Show Commit, Compare with Working Tree, Browse Files, Export Files as Archive, Mark for Comparison, Create Patch, Create Branch Here, Create Tag Here, Revert Commit, Rebase Interactively from Here, Fixup with the Included Files, Reset main to Here, Bisect, Add Note and Copy Commit Hash
Summarize Changes in the AI menu, or ✦ Summarize at the top right of the summary, has your agent say what the changes shown amount to: here everything since the tag v0.1.0, four commits and what is not committed yet, grouped by what it is about. Each commit it names is a link that shows that commit, Copy takes the text along, and the panel stays until you close it.
The summary of trailhead compared with v0.1.0, and over it a panel headed The changes, summarized by Claude Code: two sentences on the whole, then a list of five points, weather on each card, favourites and regions, sample trails on start, the climb's unit and dependencies, with the commits 3bc4f5e, 4da5e9c, 5129c44 and 0ac0faf as links, and a Copy button

Commit what you see

Every changed file in the tree has a check box. Untick what should wait, or leave a block of a file out with Leave Out of Commit, or only the lines you select, write the message at the bottom of the panel and commit with ⌘↩. Files go in as the diff shows them, and your hooks, signing and commit template work as git is set up to. Amend picks up the last message, ✦ AI writes one if you have turned the AI features on, and a branch that can be pushed offers Push right after.

Fast-forward, merge commit or squash

Merge from the branch list or the graph asks how, and says how many commits come in. When your branch has nothing of its own since the two parted, Fast-forward moves it on with no merge commit; Merge Commit keeps the branch's shape; Squash stages everything it brings for one commit of yours, with git's message in the Commit section to edit.

See it in place

The question Merge walking-pace into main? It brings 2 commits and main has none of its own, with Merge Commit, Squash, Cancel and Fast-forward buttons

Says what went wrong

A command that failed tells in a banner over the diff, with git's reason, Details and Copy, in place of a dialog in the way. It stays until you close it. A push or pull that went through shows in green and goes away on its own.

Resolve conflicts

Your side, the base and theirs each get a color. Take one side for a whole file, or one conflict at a time with ⌘⇧R: mine, theirs or both, or pick lines from each in the merge editor with ⌘⇧E. "Mine" is always your own work, in a rebase too. The last one resolved takes you to the next file, then to Commit or Continue.

From the commit graph

Right-click a commit to branch or tag from it, merge it, cherry-pick or revert it, or reset to it: soft, mixed or hard, with what each keeps spelled out. Rebase interactively from it, bisect from it, write it as a patch, export its files as a zip or a tar.gz, or add a note to it. Mark one commit and compare another with it.

Stashes

⌘⌥S stashes the changes, or only the ticked files, untracked ones along. The chip in the status bar lists them with branch and age; pick one to see what it holds, then apply, pop or drop it, or branch from it.

Bring your own agent

Gittan has no AI of its own, no account and no key. The AI features are off until you turn them on in the settings, and then they use what you bring: Claude Code or GitHub Copilot with your own sign-in, or any OpenAI-compatible API with your own key, OpenAI, OpenRouter or a local Ollama, where nothing leaves your computer. ✦ AI in the Commit section writes the message for the ticked files, Review Changes with AI (⌘⌥R) puts what it finds under the lines it is about, and the agent can resolve a conflict, split the changes into commits, fix a finding, explain how a few lines came to be, or find where something is. Summarize Changes says what the changes shown amount to, in a panel with each commit it names as a link, and the AI menu holds all of these in one place. It may read the repository but gets no tool that writes, runs a command or goes to the network: a fix or a resolution comes back as text that Gittan writes in, and Undo Discard takes it out again. Nothing is sent until you ask.

Extensions

An extension is one JavaScript file in Gittan's extensions folder (Extensions > Open Extensions Folder). It can add commands to the Extensions menu, the command palette and the file and editor menus, listen when a repository opens or changes and before and after a commit, a push or a pull, and stop one with a reason. It can read the repository's files, diffs, blame and history, run git and other programs, make web requests, and put cards under the lines of the change view, with a settings page of its own. The manifest at the top of the file names what it needs beyond notes, timers and its own storage, and Gittan asks before it loads one that wants to read your repositories, go to the network, run programs or change Gittan's settings. The guide has the whole API, type declarations for your editor and three samples: a commit lint, a shortlog and a push webhook.

Pull, push and fetch

⌘⇧L pulls, ⌘⇧P pushes, ⌘⌥F fetches, or use the buttons in the status bar; the open repository is also fetched every ten minutes. A pull only fast-forwards unless your git config says otherwise; a branch that went its own way asks Merge or Rebase, and can remember the answer for the repository. After a rebase, ⌘⌥⇧P force-pushes with a lease, so nobody else's commits are lost. When a pre-push hook refuses a push, the notice offers Push Without Hooks, for that push alone.

Branches

⌘B switches, the list makes new ones and cleans up the ones whose remote branch is gone. When local changes stand in the way, Gittan names the files and offers Stash and Switch or Bring Changes Along. Set Upstream pushes a new branch or picks what it tracks.

Merge and rebase

See what a branch would bring, in either direction, then merge or rebase from that very comparison. A merge asks whether to fast-forward, make a merge commit or squash. Choose Commits… turns it into an interactive rebase. A rebase says first when the next push will have to be forced, and the status bar counts its steps.

Revert, and undo it

Put a file, or every changed file in a folder, back as HEAD has it. Gittan keeps a copy first, so Undo Revert brings your edits back if that was a mistake. Rename or Move and Remove from Git work on the file menu too.

Tags

Branch > Tags… lists them newest first. Make one at HEAD or at any commit, check one out, branch from it, push it, export its files as an archive, or delete it here and on the remote.

Patches

Write a commit, or every commit between two, as patch files, with a cover letter if you like. Apply Patches… commits mailed patches one by one, or only changes the work tree.

Clone, init and remotes

Clone a repository, its submodules too, or make a folder a new one, from the welcome view or the File menu. The Remotes dialog adds, renames and removes remotes and sets their push URLs.

Reflog

Branch > Reflog… shows where HEAD has been, and marks the commits nothing else reaches any more. Pick one to see it, branch from it or reset back to it.

The diff

See what changed

The diff is where Gittan starts. It shows the difference between your work tree and any commit, and keeps that view fresh while you edit in whatever editor you like.

Live view

A background thread polls the repository every two seconds while Gittan is in front, and every ten behind other windows. Save a file in your editor and the tree, the counts and the diff update on their own.

No index to manage

A commit takes each ticked file as the diff shows it, whatever git add did. Only when git add took part of a file does it say so, with a ringed badge and "partly added with git add" in the header.

370+

Syntax highlighting

Lexers from the CudaText collection, picked by file name. Colors are tuned for both light and dark backgrounds.

Preview

A Markdown, HTML or SVG file can be drawn beside its diff as it will look, with no browser engine. The Preview pill in the file header, or ⌘⇧V, turns it on, and it follows the file as it changes.

Images four ways

A changed PNG, JPEG, GIF and the like shows as the two pictures side by side at one scale, or over each other: Swipe with a divider to drag, Onion Skin with an opacity to set, and Difference, which lights up where two images of the same size differ. The header says how many of the pixels changed, and the choice is kept.

public/map.png in Swipe: the trail map before the change left of a divider, the route along the lake, and after it right of the divider, the new route by Mossy Hut up to Kettle Peak · 1 284 m; 800 × 500 on both sides, 2.6 % of the pixels differ, and the pills Side by Side, Swipe, Onion Skin and Difference with the divider's slider

Translations

A gettext .po file shows as its originals on the left and its translations on the right, row for row, with the entries that changed marked. ⌘⌥L switches back to the plain text.

At home on each desktop

Tabs sit in the title bar: beside the traffic lights on macOS, and in Gittan's own title bar with a menu button on Windows and Linux, where Alt or F10 shows a menu bar and View > Menu Bar keeps it shown. The window keeps the system's shadow and rounded corners.

Gittan on Fedora Linux with KDE: the commit graph of the trndi repository in a window with its own title bar
Linux
Gittan on Windows 11: the same commit graph, with the menus and the file filter in the window's title bar
Windows
Gittan on macOS: the same commit graph under the unified toolbar
macOS

Hide unchanged lines

On from the start: only the changed lines show, with 1, 3, 5 or 10 lines of context. Click a gap to open it. Highlighting still covers the whole file, so nothing colors wrong.

Side by side or unified

Old on the left, new on the right, scrolled in step, each side numbered from its own file. Or a single view with deleted lines kept in place.

Compare with any ref

Diff against HEAD by default, or pick a branch, a tag, a commit or a snapshot. The tree, the counts and every file diff follow the base you chose.

Dark mode

Follows the desktop theme. On Windows the native tree, menus and dialogs turn dark too, so the whole window matches, not only the editor.

Scroll on to the next file

A file opens at its first change. Keep scrolling at the bottom of it and the next one pulls in. Step changes with F7, files with F8, or click a row in the summary.

Opens in your editor

Right-click a file to copy its path, reveal it in Finder or the file manager, or open it in your editor. ⌘⌥T opens a terminal. Settings (⌘,) has a page for the font, the tab width and the syntax theme, and one for the editor, the terminal, git and gh.

Review, skip or discard a block

Rest the mouse on a changed row and pills appear. Reviewed shows the block as plain code for the rest of the session, so the diff shrinks as you read it. Leave Out of Commit leaves it for a later commit, and Put into Its Commit folds it into the commit of your branch that wrote those lines. Discard puts it back as HEAD has it, after asking.

Fits the file

Word wrap, ignore whitespace, zoom, and the tab width git uses. The editor font is the platform's monospaced one, sized for the screen, until you pick another.

Folding

Fold functions, classes and other blocks the lexer knows, in the file view and in the unified diff.

History

See how it got there

Every line has a past. Gittan reads it from git and lays it next to the code, so you can tell who changed what, when, and why it looks the way it does.

Code History

Put the caret in a function or select a few lines, then ⌘⇧H. Each line gets its earlier versions under it, one color per commit.

Blame

Who last changed each line, and when, beside the code with ⌘⇧B. Click a cell to see that whole commit against its parent.

Commit graph

Graph in the sidebar, or ⌘⌥3, draws the branches with what is not pushed or not pulled yet. Type to search it: words, author:, since:, until:, path: and change:. A file's Show History is the graph of the commits that touched it, and a commit dragged onto your branch merges it.

The repository at a glance

Repository in the sidebar, or ⌘⇧I, opens a page about the repository itself: the branch and its upstream, then tiles for the commits, branches, tags, files, submodules and size, each a click away from its list. Under them what the files are, code, tests, documentation or configuration, then the remotes, and the authors with their share of the commits.

Signed, and by whom

The graph and the commit's card show each signature: verified, bad, or a key not known here, with what is missing (an allowed signers file for SSH, gpg for OpenPGP) rather than “unsigned”. Sign your own commits from the Name and Email dialog with an SSH key (verified by GitHub, GitLab and the others) or a GPG key, picked from those found, and Test signs a throwaway commit before anything is saved. A key not known here can be taken on GitHub's word.

See it in the graph

The right side of the commit graph: author, date, shield and id per commit, a filled green shield with a check on the commits of Sam Okafor and Maja Lindqvist, an outlined one on Inés Moreau's, signed with a key not known here, and none on the oldest commits

Compare branches

A branch's menu shows what it changed since it left yours, or what yours changed since it left it. Mark a commit in the graph and compare another with it, or give Compare With > Other any range, such as v1..v2.

Snapshots

Take a snapshot of the work tree with ⌘⇧N and compare against it later, to see what the last round of edits did without committing anything.

Go to definition

Hover a word to see where it is defined, and jump there with F12. Gittan finds it through the lexer's code tree, with no language server to set up.

Find a symbol

List the symbols of the shown file with ⌘⌥O, or of the whole repository with ⌘⇧T, and type a few letters to get there.

Pull request reviews

With the gh CLI signed in, the status bar shows the branch's pull request and its checks, and the review comments appear under the lines they are about, as an AI review's findings do. The globe at the top right lists your pull requests across every repository; approve, ask for changes, comment or merge one from its menu.

Submodules

Every submodule in a section of its own, with the new commits on its remote. Gittan asks again every five minutes without fetching, and updates, syncs or adds submodules from File > Submodules.

Files of any commit

The Files page shows the tree of HEAD, and Browse Files… on a commit, a tag or a reflog entry the tree as it was then. Open a file from it, or save it.

Your own commands

The scripts of package.json, the targets of a Makefile, the commands of Cargo, Go, Python and Lazarus and .gittan/commands.toml become buttons on the Commands page, their output drawn as a terminal draws it.

Any commit, explained

Click a commit in the graph and the summary shows it against its parent, under a card with its message, author and age, and a way back to the working tree.

Build

Build from source

Gittan is a Free Pascal application built with Lazarus. The editor (ATSynEdit), the highlighter (EControl), the lexers, MetaDarkStyle and LazInk are git submodules, so fetch them and register their packages with Lazarus before the first build.

  1. Install Lazarus and FPC

    Lazarus 5.0 with FPC 3.2.2 or later. On Linux also the GTK 3 headers: libgtk-3-dev on Debian and Ubuntu, gtk3-devel on Fedora. On macOS, the Xcode Command Line Tools.

  2. Clone with the submodules

    git clone --recursive https://github.com/slicke/gittan.git
    cd gittan
    
    # Cloned without --recursive, or pulled a submodule change?
    git submodule update --init --recursive
  3. Register the vendored packages

    Lazarus has to know where the packages are. make deps registers each one with lazbuild --add-package-link and compiles it, in dependency order. Run it again after a submodule moves.

    make deps
    
    # Windows:
    .\make.ps1 deps
    
    # Building from the Lazarus IDE? Rebuild it with the vendored ATSynEdit too:
    make ide
  4. Build and run

    make          # cocoa on macOS, gtk3 on Linux
    make run
    
    # Windows, where there is no make:
    .\make.ps1
    .\make.ps1 run
  • The Makefile finds lazbuild in /Applications/lazarus on macOS when it is not on PATH; make.ps1 looks in C:\lazarus and C:\fpcupdeluxe\lazarus.
  • Every build copies the lexers from vendor/CudaText-lexers into lexlib/. A build from the Lazarus IDE does not: run make lexlib once.
  • Already built Gittan before? Register metadarkstyle.lpk and lazink.lpk too; every platform needs both, though only Windows uses the first.
  • On macOS, "malformed method list atom" from the linker means an old ld: update Xcode or the Command Line Tools.
  • Details for every platform are in AGENTS.md.