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:

SystemStart
macOSStemma.app (the first time: right-click, Open; the app is signed ad hoc, see INSTALL.txt)
WindowsStemma\Stemma.exe
LinuxStemma/bin/Stemma
Any system with Java 21bin/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:

The welcome screen
The welcome screen

It names the three things worth doing first, none of them required:

  1. 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.
  2. AI (optional). Everything that uses an AI service is off until you switch it on in Settings → AI; see section 16.
  3. 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:

A repository: toolbar, side panel, history and the commit form
A repository: toolbar, side panel, history and 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.

The library as cards
The library as cards

Add a repository

Create a repository
Create a repository

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:

LayoutWhat it is
Cardsa tile per repository with the branch, ahead/behind, changed files and last change
Lista list on the left and a preview of the selected repository
Launcherone compact row per repository, to open them quickly
The library as a list with a preview
The library as a list with a preview

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.

History with a selected commit
History with a selected commit

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.

A unified diff
A unified diff
The same change side by side
The same change side by side
A picture before and after the change
A picture before and after the change

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.

The working tree and the commit form
The working tree and the commit form
  1. 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).
  2. 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
    Hunks of the working tree
  3. 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.
  4. 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.
  5. 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.

Create a branch
Create a branch

Work with branches. The side panel lists the local branches (folders such as feature/ group the names). Right-click a 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.

Merge a branch
Merge a branch

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.

Interactive rebase
Interactive 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:

ChoiceWhat happens
Keep all changesthe commits after it become staged changes
Keep changes, unstage themthe default: the changes stay in your files, not staged
Throw away all changesalso 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.

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:

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:

The Git Flow wizard
The Git Flow wizard

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….

ActionWhat Stemma does
Start featurecreates feature/<name> from develop and switches to it
Finish featuremerges it into develop (--no-ff) and deletes it; optionally squashes the commits
Start releasecreates release/<version> from develop
Finish releasemerges into main, tags it (v<version>), merges back into develop, deletes the branch
Start / finish hotfixthe 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).

The file tree with a Java file
The file tree with a Java file

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.

The history of one file
The history of one file

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).

Blame
Blame

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 overview
The overview

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.

The AI settings
The AI settings

What you can do

FeatureWhere
Describe the selected commit(s): headline, type, summary, filesthe details of a commit, Describe with AI
Suggest the commit message from the changesSuggest message in the commit form
Suggest merge, squash and tag messagesin the dialogs
Estimate the labels of commits, suggest and preselect labelscontext menu of commits; commit form
Generate the changelog of a release or of selected commits, update CHANGELOG.mdcontext menu of a tag or of commits
Translate commit messagescontext menu
Resolve a conflictin 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.

PageWhat you can set
Generalthe 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
Appearancethe 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
Gitwhich 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
Accountshosts with user name and token or password, or an SSH key
AIthe connection and the features (section 16)
Messagesthe templates for commit and merge messages
Labelsswitch labels on, the list of labels and their colours, the index file
Usersthe user mapping
Merge toolan external tool for conflicts
Integrationthe terminal, tools for Open in …, Open with the system program, the file manager, links to GitHub, GitLab and others
Networkproxy, certificates, SSH host keys
The Git settings
The Git settings

Appearance.

The appearance settings
The appearance settings

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.

Repository settings
Repository settings
PageWhat you can do
Remotesadd, edit, rename and remove remotes
Ignore rulesedit .gitignore and .git/info/exclude
Author & accessthe name, e-mail address and account used for this repository
Logosee the logo Stemma found, Choose file…, or Search automatically
Backupsthe backups made before a hard reset and a discard: restore or delete them (they are removed after 30 days)

19. Teams and companies

20. Where Stemma keeps its files

Stemma writes only to its own folders:

FolderContent
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.

The About dialog
The About dialog

21. Keyboard shortcuts

KeysAction
Ctrl+,Settings
Ctrl+OOpen a repository
Ctrl+Shift+NNew repository
Ctrl+Shift+CClone a repository
Ctrl+RReload
Ctrl+QQuit
Ctrl+EnterSend in Cowork
Ctrl+CCopy the selection in a file view
EscClose a dialog or the welcome screen

22. When something goes wrong