User guide
Stemma is a Git client for Linux, macOS and Windows with a graphical interface and built-in support for Git Flow. This guide takes you from the first start to the everyday work, and then to the settings. If you only want to know what Stemma can do, read Features. For short answers see the FAQ.
The pictures show made-up repositories. Menu names are written in italics, buttons in bold. On macOS use ⌘ where the guide says Ctrl.
1. Getting started
Install. Download the archive for your system from the releases page (stemma-<version>-<platform>.zip with linux, linux-aarch64, mac, mac-aarch64 for Apple silicon, or win), unpack it anywhere and start:
| System | Start |
|---|---|
| macOS | Stemma.app (the first time: right-click, Open; the app is signed ad hoc, see INSTALL.txt) |
| Windows | Stemma\Stemma.exe |
| Linux | Stemma/bin/Stemma |
| Any system with Java 21 | bin/stemma or bin\stemma.cmd |
The application has its own Java runtime, so Java does not have to be installed. Stemma is portable: it keeps its settings, the list of repositories and its logs in one folder next to the application and writes nothing to your home directory (see section 20).
First start. A welcome screen appears:

It names the three things worth doing first, none of them required:
- Git. Stemma works at once with its built-in Git. If you prefer the Git that is installed on your computer (version 2.30 or newer), open Settings → Git and choose System git installation. Enter your name and e-mail address there too, if your own Git configuration has none.
- AI (optional). Everything that uses an AI service is off until you switch it on in Settings → AI; see section 16.
- Your projects. Add repositories to the library (section 3).
Press Start using Stemma (or Esc). The welcome page can be shown again from About → Open the welcome page….
2. The window
At the top are the tabs: Library and one tab for every open repository; the + adds a repository, the two buttons on the right open About and Settings. Under it is the menu bar (on macOS the system menu bar): Stemma (About, Settings, Quit), Repository (New, Clone, Open and the actions of the open repository), View (themes and Reload) and Help (FAQ, the website, the source code).
A repository has:

- the toolbar with the name and the branch, and the buttons Commit, Pull, Push, Fetch, Branch, Merge, Stash, Discard, Tag, Git Flow, Settings, Finder (shows the folder in the file manager), Terminal and a filter field. In a narrow window the buttons that matter least move into a menu;
- the side panel on the left with Branches, Remotes, Tags and Stashes, and the tabs History, Files, Overview (and Cowork when the AI is set up) at its bottom;
- the history in the middle: the graph with the commits;
- below it, the changed files and the details of the selected commit, or, for the first row, the commit form.
The panels can be resized by dragging their edges; Stemma remembers the sizes and the size of the window.
3. The library: your repositories
The first tab lists every repository you have added.

Add a repository
- Repository → Open… (Ctrl+O) chooses a folder that already is a Git repository.
- Repository → Clone… (Ctrl+Shift+C) copies a repository from a web or SSH address into a folder you choose.
- Repository → New… (Ctrl+Shift+N) creates a repository. The dialog asks for the name, the location, the default branch (
main) and whether to use Git Flow at once, and shows the full path of the new folder. The buttons Open, Create and Clone at the top right of the library do the same. - Drag a folder from the file manager onto the library. A folder that is not a repository yet is offered for initialisation.

Use the library. Click a card or a launcher row to open the repository in a tab; in the list layout a click shows the preview and a double-click opens it. The search field filters by name and path. The layout can be changed in Settings → Appearance → Library:
| Layout | What it is |
|---|---|
| Cards | a tile per repository with the branch, ahead/behind, changed files and last change |
| List | a list on the left and a preview of the selected repository |
| Launcher | one compact row per repository, to open them quickly |

Removing a repository from the library does not touch the folder on your disk.
4. Reading the history
Open a repository. The first view is History.

- The graph. Every commit is a dot; lines connect it with its parents. Branch names and tags are chips next to the message (the branch you are on is filled). The colours of the branches follow Settings → Appearance → Graph colours.
- The first row is the working tree: the changes you have not committed yet.
- Select a commit to see its changed files and its details below: the full message, the author (with picture if you switched them on), the id, the parents and the labels. Click a file to see its diff (section 5).
- Select several commits with Ctrl-click (single) and Shift-click (range). Stemma then shows all their messages and the combined changes.
- Filter. Type into the filter field of the toolbar to find commits by text, author or id;
label:bugfixfinds a label (section 15). - Side panel. A click on a branch selects its latest commit in the history, a double-click checks the branch out; the context menu of a branch, a tag or a remote offers what fits: switch, merge, rebase, rename, delete, push, reset, open on the web.
- Right-click a commit for what can be done with it: cherry-pick, revert, reset the branch to it, squash the last commits, amend the last one, open on the web, generate a changelog, and the AI entries.
The history follows changes made outside Stemma (a commit in a terminal, a checkout, a pull). With Settings → General → Refresh when files change on, you do not have to press anything.
5. Looking at changes
Click a changed file (below the history) to open its diff. A bar at the top shows the file, the comparison (for example 593c220 → 321e31f), the number of added and removed lines, Wrap lines, the amount of context, Unified or Split, and arrows to the previous and next file. History (top left) goes back.


- Unified shows the old and the new line in one column, Split puts the old text on the left and the new on the right. Each side scrolls on its own sideways, and both move together up and down.
- Context is the number of unchanged lines around a change: 0, 1, 3 (the default), 5, 10, 25 or all lines. Hunks can be staged with 3 lines of context.
- Wrap lines breaks long lines instead of scrolling.
- New and deleted files show all their lines as added or removed.

Pictures. A PNG, JPEG, GIF or BMP file shows the picture before and after with its size in pixels and bytes. Pictures larger than 20 MB, and file formats Stemma cannot draw (for example WebP, TIFF and SVG), show a note or the text diff.
Markdown. The diff of a .md file has the tabs Text and Preview at the bottom; the preview is the rendered document. A link opens in your browser only when you click it.
Open a file. Right-click a file for Open (the program your system has for it), Open in … (your own tools), Show in file manager, Show history of this file and Blame. For a file of an old commit a read-only copy is opened.
6. Making a commit
Select the first row of the history (Uncommitted changes). Below it are the changed files on the left and the commit form on the right.

- Choose what goes in. Tick the files you want to commit, or Select all. A letter shows what happened to a file: M modified, A added, D deleted, U has conflicts. A file with conflicts is staged one at a time, because staging it marks it as resolved (section 10).
- Part of a file. Open the diff of the file; it has two sections, Unstaged changes and Staged changes. Press Stage hunk or Unstage hunk on the line starting with
@@, or click or drag in the gutter to select single lines and press Stage lines, Unstage lines or Discard lines.
Hunks of the working tree - Write the message. The Summary is required and should be one short line; the Description is optional. If you set a message template in Settings → Git → Commit message, an empty form is filled with it.
- Labels (if switched on in Settings → Labels) are the chips below: click the ones that describe the change. Stemma proposes labels from the branch name and the files.
- Press Commit (Commit all 3 when nothing is ticked, which commits everything).
Amend the last commit. Tick Amend the last commit (or use the entry in the context menu) to change its message and add the staged changes. If the commit is already published, Stemma warns you first, because the next push will need a force push (section 8).
Discard changes. The Discard button (or the menu of a file) throws away the changes of the selected files, or of all of them. Stemma asks and says what will be lost; untracked files are deleted (or moved to the trash, as you set it). Before a discard that cannot be undone, a backup of the working tree is written; the toast has an Undo button, and Repository settings → Backups lists them.
Ignore. The menu of a file has Ignore … entries (this file, all files with the extension, the folder) that add a rule to .gitignore. For a file that is already tracked, Stop tracking and ignore… removes it from the index first.
7. Branches and tags
Create a branch. Branch (toolbar, or Repository → New branch…) asks for a name and the starting point and switches to the new branch.

Work with branches. The side panel lists the local branches (folders such as feature/ group the names). Right-click a branch:
- Switch to it (a double-click does the same). Changes that are not committed come along when they do not conflict.
- Merge … into … (section 9).
- Rebase … onto ….
- Rename branch… (also on the remote, if you want).
- Delete branch… (a branch that has not been merged is named in the question).
- A remote-tracking branch can be checked out as a local branch.
Tags. Tag creates a tag on the selected commit: lightweight, or annotated with a message. In the side panel a tag's menu can push it to a remote, delete it (also on the remote) and reset the branch to it. Push all tags is in the menu of the Push button. Check which tags are on origin asks the remote once and marks the tags that exist only on your computer with local only.
8. Working with remotes
Fetch downloads what is new on a remote. The small arrow on the button opens a menu: Fetch all remotes, a single remote, and Fetch settings…. Settings → Git → Fetch can prune deleted remote branches and can fetch automatically every 5 to 60 minutes for the open repositories (off by default; it never asks for a password).
Pull fetches and integrates the upstream branch; Push sends your commits. On the first push of a branch Stemma sets the upstream. The numbers in the library and the arrows in the history (↑1 ↓2) show how many commits you are ahead and behind.
A rejected push. If the remote has commits you do not have, Stemma explains it and suggests to pull first. If you have rewritten commits that are already published (after an amend, a rebase or a squash), it offers Force push (with lease). The lease means that the remote branch is overwritten only if it is still where you last fetched it, so nothing somebody else pushed meanwhile can be lost. The question lists the commits that will be lost. A plain force push is hidden unless you switch it on in Settings → Git → Push, and then needs the branch name typed.
Sign in. For HTTPS you need a user name and a token or password, for SSH a key. Add them as accounts in Settings → Accounts (section 17). The credentials are kept in an encrypted file with a master password. Your own credential helpers and the SSH agent keep working. If a push or pull fails because of the sign-in, the message says so.
Open on the web. Repository → Open remote in browser and the entries Open on GitHub (GitLab, Bitbucket, …) for a commit, a branch or a file open the page of the repository. Servers of your own can be added in Settings → Integration → Remotes.
9. Combining and rewriting history
Merge. Switch to the branch that should receive the changes, press Merge and choose the other branch. Stemma makes a fast-forward if it can, else a merge commit; the message can be edited. A merge that stops on conflicts stays in progress: a banner offers Resolve…, Continue (commit) and Abort.

Rebase. Right-click a branch and choose Rebase … onto … to replay your commits on top of another branch. You need a clean working tree. On a conflict, a banner offers Resolve…, Continue, Skip commit and Abort.
Interactive rebase. Right-click the oldest commit you want to change and choose the interactive rebase of the last commits. Choose for each commit Pick, Reword, Squash, Fixup or Drop, move commits with the arrows, and press Start rebase.

Squash. Squash the last N commits into one… in the menu of a commit combines them with a message made from theirs.
Cherry-pick. Select one or several commits and choose Cherry-pick onto branch…. They are copied on top of the current branch, oldest first, with author, date and message kept. Options: add the line (cherry picked from commit …), copy the labels, or apply a single commit to the working tree only. A merge commit asks which parent's side to use. If a commit does not apply cleanly the series stops; resolve the conflicts and choose Continue cherry-pick, Skip commit or Abort.
Revert. Revert commit… (or Revert N commits… for a selection) makes a new commit that undoes each selected one, newest first, with the message Revert "…". A conflict is handled like in a cherry-pick.
Reset. Reset *branch to here…* in the menu of a commit moves the branch to it. The dialog explains the three kinds in plain words:
| Choice | What happens |
|---|---|
| Keep all changes | the commits after it become staged changes |
| Keep changes, unstage them | the default: the changes stay in your files, not staged |
| Throw away all changes | also your files go back; Stemma shows how many commits and files are lost, asks once more and first makes a backup |
After a hard reset the toast has an Undo that brings everything back from the backup.
10. Resolving conflicts
A merge, rebase, cherry-pick or revert that cannot be done on its own leaves the files with conflicts marked U. Open the merge tool with Resolve… in the banner or from the menu of the file.
- Stemma's own three-way merge tool shows base, ours, theirs and the result. Choose a side for each conflicting block, or edit the result, then mark the file as resolved and stage it.
- You can use your own tool instead, in Settings → Merge tool (
$BASE,$LOCAL,$REMOTE,$MERGED). If the tool ends cleanly and no conflict markers are left, the file is marked as resolved. - Resolve with AI (optional) proposes a result; nothing is applied until you accept it.
When every file is resolved, press Continue in the banner (or Commit for a merge). Abort goes back to where you were.
11. Stash
A stash puts your uncommitted changes aside, for example to switch branches. Stash (toolbar, commit form or Repository → Stash) opens a dialog:
- a Message, so you know later what is in it;
- Include untracked files (on by default);
- with the system Git: Keep the staged changes in the index and Only the selected files (the files ticked in the commit panel). The built-in Git cannot do these two and says so.
Stashes are listed in the side panel with their age. A click opens one with its files and changes. The buttons Apply (keep the stash), Apply and remove (pop), Create branch… and Drop… are there and in the context menu. If applying conflicts, the stash stays in place.
12. Git Flow
Git Flow is a branching model with a production branch (main), a development branch (develop), and short-lived branches for features, releases and hotfixes. Stemma reads and writes the same configuration as the git flow command, so you can use both.
Set up. The Git Flow button opens a menu. In a repository without Git Flow it has one entry, Set up Git Flow…, which starts the wizard; afterwards the entry Change Git Flow set-up… (at the bottom of the menu) opens it again:

It asks for the production and the development branch (the latter is created if it does not exist), the prefixes (feature/, release/, hotfix/, support/) and the version tag prefix (v), and shows what will be written before you press the button. If a set-up is missing or half done, the wizard offers to complete it.
Use it. The menu has the entries Start feature…, Finish feature…, Start release…, Finish release…, Start hotfix… and Finish hotfix….
| Action | What Stemma does |
|---|---|
| Start feature | creates feature/<name> from develop and switches to it |
| Finish feature | merges it into develop (--no-ff) and deletes it; optionally squashes the commits |
| Start release | creates release/<version> from develop |
| Finish release | merges into main, tags it (v<version>), merges back into develop, deletes the branch |
| Start / finish hotfix | the same from and to main, and a release branch if one is open |
If a conflict stops a finish, resolve it and finish again: Stemma resumes where it stopped.
13. Files, file history and blame
Files. The tab Files in the side panel shows the tree of the repository as it is in the selected commit (or at HEAD).

Click a file to see it. Source files are shown with syntax colours (Settings → Appearance → Source files), a Markdown file rendered and a picture as a picture. Right-click for Open, Open in …, Show history of this file and Blame.
File history. Show history of this file (also for a folder) limits the history to the commits that changed it and follows renames. A bar above the list says so and has a button to take the filter away again.

Blame. The Blame switch above a file shows who changed which block of lines: the short commit id, the author and the date, and a colour bar (the newer, the warmer).

A click on the gutter selects that commit in the history. The menu of a line offers Blame the parent (the version before that commit) and Back. Options: Ignore white space and the revisions of .git-blame-ignore-revs. Files over 1 MB or 20,000 lines are not blamed.
14. Overview and statistics
The tab Overview shows the name, the headline of the README, the location, the logo, the counts (commits, branches, tags, stashes, changed files), and the branch and the remotes. Below are the statistics, for All time, Last year or Last 90 days:

- the committers with the number of commits (and their pictures, if you switched them on);
- lines of code in total, per file and per developer, the number of files, and the languages and file types as a table and a donut chart;
- the most modified files and folders, and the files that change together.
Export committers… and Export files… write the tables as CSV.
15. Labels, users and author pictures
Labels. Labels such as Feature, Bugfix, Hotfix, Documentation, Refactoring, Test and Chore, and your own, mark what a commit is about. They are shown as coloured chips in the history and in the details, and you can filter with label:name. Switch them on and define your own in Settings → Labels. In the commit form click the chips that fit; Stemma proposes labels from the branch name (bugfix/…) and the files. The labels are not written into the commits: they are kept in a shareable index file, so a team can use the same labels without changing history. See label-index.md.
Users. When one person committed with two e-mail addresses or spellings, the history and the statistics show them as two. Switch on the user mapping in Settings → Users to show them as one: the page lists the identities found in the repositories and lets you assign them to a user. A .mailmap can be honoured too. See user-mapping.md.
Author pictures. In Settings → Appearance → Author pictures you can show profile pictures from Gravatar and from GitHub. They are off by default, because they contact those services (Gravatar gets a hash of the address, GitHub the id of a commit; never the address or the name). The picture and the name then link to the profile page.
16. AI helpers and Cowork
All AI features are off by default. Nothing is sent anywhere until you switch them on, and only when you press the button of a feature.
Set up. Settings → AI: switch the master switch on, choose the provider (Anthropic, an OpenAI-compatible service, GitHub Models or Copilot, a custom web service, or a local tool that you start from the command line and that reads the prompt from its standard input), the model and the key (the key goes into the encrypted secret store). Choose which features to use. Local only mode accepts only tools and servers on your computer. The page says for each feature what is sent; files that match the privacy patterns and binary files are never sent, secrets are masked, and a log shows every request.

What you can do
| Feature | Where |
|---|---|
| Describe the selected commit(s): headline, type, summary, files | the details of a commit, Describe with AI |
| Suggest the commit message from the changes | Suggest message in the commit form |
| Suggest merge, squash and tag messages | in the dialogs |
| Estimate the labels of commits, suggest and preselect labels | context menu of commits; commit form |
Generate the changelog of a release or of selected commits, update CHANGELOG.md | context menu of a tag or of commits |
| Translate commit messages | context menu |
| Resolve a conflict | in the merge tool |
While a request runs, the button that started it is locked and a spinner is shown; the answer can be copied.
Cowork. When the AI is set up, a fourth tab Cowork appears in the side panel. Talk to the AI about your repository: write a question, or click a ready-made prompt (summarize the recent work, release notes, a pull request description, a stand-up, risky commits, the next version number, how to undo your last commit, …). A click copies the prompt into the input field, where you can change it before Send (Ctrl+Enter). Stop cancels. A prompt can ask for data of the repository by name: {commits}, {changes}, {tags}, {committers}, {branch}, {repo}; never the contents of files. Each answer says what it was sent with. Save your own prompts with Save as prompt…, mark favourites with a star, and copy an answer as formatted text or export it as PDF.
17. Settings
Stemma → Settings… (Ctrl+,) has these pages. Save applies them, Cancel keeps the old ones.
| Page | What you can set |
|---|---|
| General | the project folder (where Clone and New put repositories), reload when the window is used, refresh when files change, log level (Info, Debug, Trace), the Buy me a coffee link |
| Appearance | the language of the interface, the colour theme (Light, Dark, Automatic), the library layout (Cards, List + preview, Launcher), the repository layout (details at the bottom or an inspector on the right), the commit graph (curved or angular), the diff (unified or side by side), toolbar icons (colour or flat grey), author pictures, syntax colours for source files, the accent colour, graph colours, company branding |
| Git | which Git (built-in or system), your name and e-mail, confirmations (discard, amend, hard reset), push (force push, tags), fetch (prune, automatic), the ignore file, more git config |
| Accounts | hosts with user name and token or password, or an SSH key |
| AI | the connection and the features (section 16) |
| Messages | the templates for commit and merge messages |
| Labels | switch labels on, the list of labels and their colours, the index file |
| Users | the user mapping |
| Merge tool | an external tool for conflicts |
| Integration | the terminal, tools for Open in …, Open with the system program, the file manager, links to GitHub, GitLab and others |
| Network | proxy, certificates, SSH host keys |

Appearance.

Accounts. Add an account per host (github.com): the user name and a personal access token (for GitHub, create it in the account settings of the service) or the path of an SSH key. Choose in the repository settings which account a repository uses. The master password protects the encrypted secret file.
18. Repository settings
The Settings button of the toolbar (or Repository → Repository settings…) is for one repository.

| Page | What you can do |
|---|---|
| Remotes | add, edit, rename and remove remotes |
| Ignore rules | edit .gitignore and .git/info/exclude |
| Author & access | the name, e-mail address and account used for this repository |
| Logo | see the logo Stemma found, Choose file…, or Search automatically |
| Backups | the backups made before a hard reset and a discard: restore or delete them (they are removed after 30 days) |
19. Teams and companies
- Branding. Settings → Appearance → Branding sets one to three company colours, the company name and web address, and a logo. They show on the library page and in the window title; the brand colour becomes the accent. A branding file (
branding.json) in the configuration folder is loaded at every start, so one file can give a whole team the same look. Import and Export are on the same page. See branding-file.md. - Shared labels and users. The label index and the user mapping are files; put them on a shared drive and point Settings → Labels and Settings → Users to them.
- Portable settings. Set
STEMMA_CONFIG_DIR(or-Dstemma.config.dir=…) to put the configuration folder elsewhere, for example on a read-only installation or a USB stick.
20. Where Stemma keeps its files
Stemma writes only to its own folders:
| Folder | Content |
|---|---|
config/ (in the application folder; stemma-config next to the runnable jar) | settings.properties, the library, branding.json, the encrypted secrets, the label index, the user mapping, prompts/, avatars/, ai-cache/ |
logs/ | one file per day, stemma-YYYY-MM-DD.log, kept 31 days |
Both can be moved with STEMMA_CONFIG_DIR and STEMMA_LOG_DIR. About → Logs shows the log with a filter and a search; About → System has the version, the Git backend and the folders, to copy into a bug report.

21. Keyboard shortcuts
| Keys | Action |
|---|---|
| Ctrl+, | Settings |
| Ctrl+O | Open a repository |
| Ctrl+Shift+N | New repository |
| Ctrl+Shift+C | Clone a repository |
| Ctrl+R | Reload |
| Ctrl+Q | Quit |
| Ctrl+Enter | Send in Cowork |
| Ctrl+C | Copy the selection in a file view |
| Esc | Close a dialog or the welcome screen |
22. When something goes wrong
- A button is disabled or says "Commit or stash your changes first". Some actions (rebase, switching branches with conflicting changes) need a clean working tree. Commit, or stash.
- A push is rejected. See section 8: pull first, or use a force push with lease if you rewrote published commits.
- "Authentication failed". Check the account in Settings → Accounts and, for GitHub, that the token has the right to write to the repository.
- The view is out of date. Press Ctrl+R, or switch on Refresh when files change.
- Something does not work with the built-in Git. Try the system Git in Settings → Git (some functions, such as stashing selected files, need it).
- You lost work after a reset or discard. Look for the Undo in the toast, or in Repository settings → Backups.
- Report a problem. Use About → System → Copy to clipboard and the log, and open an issue on GitHub. The system page contains no repository names, only the folders of the configuration and the logs.