Get started
What you need
Section titled “What you need”- Windows. The installer builds from the releases on Codeberg are for Windows, and only those builds check for updates.
- Git, version 2.40 or newer. The app runs the
gitit finds on yourPATH. It does not bundle its own copy.
The start screen has a Git line at the bottom. It shows the version and the full path of the
git the app found. If git is missing or older than 2.40, the line says so and Open repository…,
Clone repository… and New repository… stay disabled. Install or update git, then press Search
again; you don’t need to restart the app.
Updates
Section titled “Updates”A release build asks Codeberg for the latest release 30 seconds after it starts, and then once a day. If there is a newer one, the status bar shows Version x.y.z is available. Click it to see what changed, then choose Update (or Later). The app downloads the installer, checks it against the SHA-256 listed in the release, runs it and closes so the installer can replace the files.
You can switch the automatic check off, or check by hand with Check now, under Settings, General, Updates. A build you made yourself never looks for updates.
The start screen
Section titled “The start screen”
With no repository open you see three buttons and a list.
- Open repository… opens a folder picker. Pick the folder of a git working tree, or a folder inside one.
- Clone repository… copies a repository from a server to your disk.
- New repository… starts an empty repository.
- Recent lists the repositories you opened before, newest first, up to 12. A repository whose folder is gone is greyed out and says “no longer exists”. The × next to an entry, or a right-click and Remove from list, takes it off the list. A right-click also offers Open and Copy path.
Open a folder from the command line
Section titled “Open a folder from the command line”The installer puts gcmx.cmd next to the app. In a terminal, gcmx . opens the current folder as a tab, and gcmx C:\code\app
opens that one. If the app is already running it opens the tab there and brings the window forward; if not, it starts the app
and opens it. Without a path, gcmx just starts the app.
The install folder is not on your PATH, so to type just gcmx add that folder to the PATH of your user (Settings, System,
About, Advanced system settings, Environment Variables). Without that, call it with its full path, or call the app itself:
git-client-mx.exe . does the same.
The app only reads the folder you type yourself. If the folder is not a git working tree, you get the usual error message and
nothing else happens. Links such as gcmx://open?repo=…, which could come from elsewhere, are not supported yet.
Clone repository… asks for:
- Address: an HTTPS address, an
ssh://address,git@host:owner/repo.git, or a local path. Any forge works. Pick from a forge… lists your repositories on GitHub, GitLab, Forgejo or Gitea instead: type the host (it starts with one you added a token for under Forge tokens), press Load my repositories, filter the list and click one to fill in the address. SSH next to a repository uses its SSH address instead of HTTPS. - Location: the folder the repository goes in. Choose… opens a folder picker.
- Folder name: filled in from the address, the way git does it. You can change it.
- Include submodules: also fetch the submodules.
- For large repositories, two choices that make a big clone faster and smaller. Both are off by default, and you can
combine them:
- Download file contents only when needed (partial clone) runs
git clone --filter=blob:none. Git gets the whole history at once, but the contents of files only when you need them: when you check out a branch, open a diff or run a blame. What you give up is that those actions later need a connection to the server, and they can take a moment while git fetches. A server that does not support this simply sends everything. - Only the most recent history (shallow clone) runs
git clone --depth N, with the number of commits you choose (50 to start with, 100 000 at most). Only that many commits of one branch come along. Older History, Blame and comparisons with old commits are limited, and git can fetch more history later (git fetch --deepenor--unshallow).
- Download file contents only when needed (partial clone) runs
The dialog shows where it will clone to. While it runs, you see git’s progress and a Cancel clone button; if you cancel, the app removes what it had cloned so far. If the host asks for a login, git asks you in the same dialog. If a saved login is wrong, Sign in again forgets it and tries again. More in Logins and privacy.
The app runs git clone --progress (with --recurse-submodules, --filter=blob:none and --depth when you choose those). When it is
done, the repository opens on Changes.
New repository
Section titled “New repository”New repository… asks for a Location, a Name (the folder) and a First branch. The
first branch starts as the init.defaultBranch from your git config, or main if you have none.
Create runs git init --initial-branch=<name> in that folder, and creates the folder if it
doesn’t exist. Files already in the folder stay where they are, and nothing is committed. The
repository then opens on Changes.
Remotes
Section titled “Remotes”A remote is a copy of the repository on a server. Run Remotes… from the command palette (Ctrl+K) to see them with their
addresses, change an address, rename a remote, remove one, or add one. A fork usually has two: origin is your copy and
upstream is the project you forked from; the dialog suggests upstream once origin exists.
Adding a remote does not fetch anything: press Fetch afterwards to get its branches. An address with a password or a
token in it is refused, because git would keep it as plain text in .git/config; add a login under Manage logins
instead. Rename moves the remote branches and the upstreams of your branches along. Remove deletes the remote
branches in this repository and nothing on the server, and asks first.
Several repositories, and getting them back
Section titled “Several repositories, and getting them back”Every repository you open gets its own tab. Tabs appear above the top bar as soon as two are open.
- Click a tab to switch. The ×, or a middle click, closes it.
- The + at the end opens another repository (the folder picker).
- Right-click a tab for Close, Close other tabs and Copy path.
Ctrl+PageDownandCtrl+PageUpgo to the next and the previous tab.- You can’t switch tabs while a sync, merge or rebase is running; the tab buttons are disabled and say “Wait until the sync or operation has finished”.
When you start the app again, it opens the same tabs, with the same one active. A repository that no longer exists is dropped from the set.
Your first commit
Section titled “Your first commit”- Open Changes (
Ctrl+1). Changed files are listed under Unstaged. Click one to see what changed on the right. - Click the + at the end of a file’s row to move it to Staged. Stage all moves everything. The staged files are what the commit will contain.
- Type a one-line Summary in the box under the lists. Add a Description if you want to say more.
- Press the Commit to
<branch>button, or pressCtrl+Enterin the summary or description box.
The staged list is now empty and your commit is on the branch. If you didn’t mean it, Ctrl+Shift+Z
undoes it. Stage and commit exactly what you mean covers staging single
hunks and lines, discarding, the diff view and amending.
Where to go next
Section titled “Where to go next”- Stage and commit exactly what you mean: the Changes view in full.
- Keyboard shortcuts: everything you can do without the mouse, and the command palette (
Ctrl+K). - Logins and privacy: how the app signs in to remotes, and what leaves your computer.
- Branches and sync: switching branches, fetch, pull and push.