Repository
Git version
3 min read
Versora doesn't ship its own Git: it uses the Git installed on the computer, the same one as the command line. That way hooks, credentials, SSH and settings work as they do in the terminal.
This is the main page about the Git version. The other manual pages that mention a minimum version point here.
| Version | Why | |
|---|---|---|
| Minimum | Git 2.28 | New repository (init) creates the initial branch with git init -b <branch>, which only exists from Git 2.28 on. |
| Recommended | Git 2.40 or newer | Some features depend on commands that only exist in newer versions (table below). With 2.40, everything works. |
Versora doesn't refuse an older Git: the app opens and works, but the features that need a newer version are unavailable, and a bar at the top of the window says which ones.
| Feature | Minimum version |
|---|---|
The extra force-push protection (--force-if-includes) | 2.30 |
| Untracked files in a stash exported as a patch | 2.32 |
| Identity chosen by remote | 2.36 |
| The built-in fsmonitor in Optimize repository | 2.37 |
| Merge and rebase conflict prediction | 2.38 |
| Detecting squashed branches in cleanup | 2.38 |
| Restacking in a single rebase | 2.38 |
| Commit surgery | 2.40 |
| The cherry-pick and revert conflict preview | 2.40 |
Moving changes between worktrees that are on different commits also requires Git 2.40 (see Moving changes and commits between worktrees). Repositories with refs in reftable require a Git that has that format (see SHA-256 and reftable).
At the top of the window, as soon as the app opens, when Git is below 2.40 or wasn't found.
- Old Git: "Git ‹version› found. With 2.40 or newer everything works; with this one, these are unavailable: ‹list›." The list uses the names in the table above, each with the version it requires. For example, with Git 2.36.1: "Git 2.36.1 found. With 2.40 or newer everything works; with this one, these are unavailable: the built-in fsmonitor in Optimize repository (2.37), merge and rebase conflict prediction (2.38), detecting squashed branches in cleanup (2.38), restacking in a single rebase (2.38), commit surgery (2.40), and the cherry-pick and revert conflict preview (2.40)."
- No Git: "Git wasn't found: install Git for Windows and restart Versora."
The bar has the Download git button, which opens the official download page (git-scm.com) in the browser, and the × ("Dismiss until git changes version").
- Click Download git and install the new version of Git for Windows.
- In Versora, open Preferences › Operations and, in the Warnings group, click Check again in the Git version item. It reads the version again, without restarting the app. (Restarting Versora also works.)
- The item now says "Git ‹version›: every feature available (recommended minimum: 2.40)." and the bar goes away.
The × (tooltip "Dismiss until git changes version") hides the bar until the Git version changes. To see it again, use Show the warning again in Preferences › Operations › Warnings › Git version.
The item shows one of these sentences:
- "Git ‹version›: every feature available (recommended minimum: 2.40).";
- "Git ‹version›: N features are unavailable (recommended minimum: 2.40).";
- "Git wasn't found: install Git for Windows and restart Versora."
Buttons: Check again and, if you dismissed the bar, Show the warning again.
The Preferences › About and diagnostics page also shows the Git version and the Executable in use ("Versora uses the Git installed on this machine: hooks, credentials, SSH and settings work just like on the command line.").
It only reads the version:
git version
- "Git wasn't found. Install Git (git-scm.com) and make sure it's on the system PATH." (in About and diagnostics): the app looks for Git on the PATH. After installing, restart Versora.
- The bar only warns, in a single place. Each feature in the table also checks the version on its own before running. For example, conflict prediction says "Conflict prediction needs git 2.38 or newer (installed: 2.30.1). Update Git for Windows to turn it on."
- With a Git below 2.28, New repository (init) with an initial branch fails, because Git doesn't know
git init -b. Update Git.
Preferences › Operations (id ergoOps) can be hidden or locked by the administrator
(preferences_hidden, preferences_locked). See
Policy keys.