Skip to content

Git

The Git log shows the project’s history under your terminals: branches on the left, commits in the middle, the selected commit’s files and message on the right. Commit, push, update and branch actions live in the Git menu and in the branch menu at the top right of the window. A folder that isn’t a git repository has no Git log and no Git actions.

Press ⌘9, click Git log at the bottom of the left rail, or choose View › Git Log. The panel opens at the bottom of the work area, in every mode. Hide it with the same key or the — button in its header.

Drag the panel’s top edge to change its height, and the edges between its columns to change their widths; double-click an edge to reset it. Sizes are kept across windows and launches. The panel itself starts hidden after a launch.

The Drakkar window with the Git log open under a finished agent's terminal: branches on the left (HEAD (current branch), Local with main and the feature and fix folders), the commits of main in the middle with branch labels on the newest one, and on the right the selected commit's file tests/test_large.py, its message, hash, author and date
The Git log under the terminals. The newest commit is selected; its one file and its message are on the right.

The log shows the whole repository, every branch, not just the copy in the front tab. It reloads by itself after a commit, a fetch or a branch change.

The left column lists HEAD (current branch), then Local and Remote. Local branches are grouped into folders by their prefix: feature/login sits in the feature folder. Remote branches are grouped by remote, such as origin. Favourite branches come first in each group, under their full names.

HEAD (current branch) works like a branch row: a click selects it, a double-click filters the log by Branch: HEAD, which follows you when you check out another branch. It has no menu: right-click the branch itself.

  • Double-click a branch to show its commits: it is added to the Branch filter.
  • Click to select a branch, ⇧-click to select a range, ⌘-click to add or remove one.
  • Right-click a branch for its menu:
    • Checkout switches your main checkout to it. It is off for a branch that a workspace holds: git keeps a branch in one place.
    • New branch from main… (with the branch’s name) opens New branch with that base.
    • Diff with ‘main’ opens Review with your branch compared to that one.
    • Add to favourites or Remove from favourites.
    • Rename… for a local branch. It is off for the main branch and while an agent works on the branch or needs you.
    • Delete… deletes the branch; see Delete a branch.

With several branches selected, the menu offers Delete N branches. To hide or show the column, click the branch button at the left of the filter bar.

The top of the Git log: the branch button and the Text or hash field, the Branch, User, Date and Paths filters, and the Fetch and refresh button; under them the commits of main with their branch labels
  • Text or hash: matches a commit’s subject, its author, or the start of its hash. Typing selects the first match. Esc clears the field.
  • Branch: All branches, or a branch or tag from the LOCAL, REMOTE and TAGS lists.
  • User: me (your user.name) or any author, with their number of commits.
  • Date: Last 24 hours, Last 7 days, Last 30 days, or Select… for a range: type From and To as dd.mm.yy and click Apply.
  • Paths: check files and folders; the log shows commits that touch any checked path.

A set filter reads, for example, Branch: main ×; click × to clear it. While any filter is set, the bar counts N of M commits. If nothing matches, click Clear filters in the empty log.

The round-arrow button on the right is Fetch and refresh: it fetches every remote of the project, then reloads the log. It works even when background fetch is off. A failed fetch shows a notice.

Each row shows the graph, the subject, labels of the branches and tags that point at the commit, the author and the date. Local branches have accent labels, remote branches purple, tags yellow. A label shortened for room starts with ../. When filters cut the history, the graph shows dots only.

  • Click a commit to see its details on the right; move with ↑ ↓.
  • Double-click it or press ↵ to open it in Review.
  • Right-click for Open in Review, Copy hash and Cherry-pick. Cherry-pick applies the commit onto the branch of your main checkout. It is off for a merge commit and for a commit already in that branch.

The right column shows the selected commit:

  • N FILES: the changed files as a tree with +/− counts. Click a file or press ↵ on it to open the commit in Review at that file. Right-click for Copy path (⌘C) and Copy @path for agent (⇧⌘C). ⌘+ and ⌘- expand and collapse all folders.
  • For a merge commit, its own files come first, then a group per parent, such as Changes to 4f2a1c9 Add the JSON API; a file in a group opens the merge against that parent.
  • The message, then the short hash, author, email and date, and the branches that contain the commit: In N branches: ….

The button at the top right of the window shows your main checkout’s branch, with ↑N commits to push and ↓N to pull. Its tooltip says where the branch stands. Click it for the branch menu:

  • Update project, Commit…, Push…;
  • New branch… and Checkout tag or revision…;
  • Recent, Local and Remote branches. Type to search branches and actions. ☆ stars a branch; › opens its submenu.

A branch’s submenu has the same items as in the Git log, plus:

  • Show in Git log opens the log filtered to that branch.
  • Rebase ‘main’ onto ‘fix/typo’ and Merge ‘fix/typo’ into ‘main’ run in your main checkout (here main is checked out and fix/typo is the branch).
  • For a workspace’s branch, Review with the workspace’s name replaces Merge: merge it from Review, which also cleans up the workspace. See Review.

Press ⌘K or choose Git › Commit…. The window commits the copy you’re looking at: the front tab’s workspace, or your branch. If there is nothing to commit, a notice says so instead. With workspaces, click the branch name in the title to pick another copy; the message you typed stays.

The Commit window: Commit to feature/health-endpoint, 2 files · +52; on the left CHANGES with bookmarks/app.py (+8) and tests/test_app.py (+44) checked, and UNVERSIONED with requests.http (+8) unchecked; on the right the diff of bookmarks/app.py with two added lines; the message Add GET /health for the load balancer, Amend last commit unticked next to the last commit 20d9aaa, and the buttons Cancel, Commit and push… and Commit 2 files
Tracked changes start checked; the new requests.http stays out unless you check it.
  • On the left, the changed files with checkboxes, under CHANGES and UNVERSIONED. Tracked changes start checked, untracked files don’t.
  • On the right, the diff of the selected file.
  • Type the message. ⇥ moves to the file list.
  • Amend last commit loads the last message and rewrites that commit. If it is already pushed, a yellow note warns that the push will have to be forced.

Press ⌘↵ or click Commit N files. Commit and push… (⌥⌘↵) commits, then pushes. A workspace branch that was never pushed gets its first push right away; otherwise the Push window opens.

Press ⇧⌘K or choose Git › Push…. Push works on your main checkout’s branch. The title shows where it goes, as main → origin/main. The left side lists the commits to push, with All changes first; select one or several (⌘-click) to see their files on the right. Click Push N commits or press ⌘↵.

If the remote has commits you don’t, the window turns into Push rejected and lists them. Choose Merge or Rebase under Update by, then Update and push or Update only. Uncommitted changes are stashed and put back.

Press ⌥⌘T or choose Git › Update Project. Drakkar fetches, then brings your main checkout’s branch up to date with its upstream:

  • If only the remote has new commits, the branch moves forward at once and a notice says how many came in.
  • If both sides have commits, a window asks how: Merge adds a merge commit, Rebase puts your commits on top of the upstream. Click Update. Drakkar remembers the choice for the project.

Uncommitted changes are stashed first and put back after. If they clash with what came in, the notice says which stash keeps them.

New branch… (⌥⌘N) makes a plain branch in your main checkout. Type a Name, pick From: the current branch, its upstream, another branch or a tag. Leave Checkout branch on to switch to it. For an agent’s task, make a workspace instead: Workspaces.

Checkout tag or revision…, in the branch menu, finds a tag, a branch or a commit by name, hash or message. A remote branch checks out as a new local branch that tracks it; a tag or a commit leaves a detached HEAD, and the window says so. A branch that a workspace holds is greyed out: open its tab instead.

Rename… asks for a new name. Tick Rename on origin too to push the new name and delete the old one there; the window says what that means for others. A workspace’s branch can be renamed; its workspace keeps its name.

Delete removes a merged local branch at once. Drakkar asks first only when work would go: commits that are on no other branch, or a branch on the remote. The notice after it has Undo for 2 minutes; it brings back local branches only. A branch deleted on the remote can’t be undone.

A merge, rebase or cherry-pick in your main checkout can stop on conflicts. Then a yellow bar appears under the Git log’s header and in the Commit window, such as Merge of feature/login in progress · 2 files with conflicts, and the branch in the title reads main · merging.

Git stops on conflicts and shows a yellow bar with the number of files in conflict. Resolve each file, then Continue finishes the operation. Abort puts the branch back as it was.
  1. Press ⌘K. Conflicted files have a Resolve… link.
  2. For a text conflict, Resolve… opens Merge…: both versions beside the result. For a deleted or renamed file, it opens Resolve conflict, where you choose what to keep.
  3. When no conflicts are left, click Continue in the bar. A rebase also offers Skip for the current commit.

Abort merge (or Abort) puts the branch back as it was before; Drakkar asks first and says what would be lost. Until the operation ends, Commit is off and other branch actions wait.

  • Settings › Workspaces & Git › Fetch from remotes every 10 minutes keeps ↑ ↓ in the branch button current. It never pulls or merges.
  • Settings › Notifications › Git and Review controls the notices of pushes, updates, merges and Review actions.
  • Settings › Keymap changes the shortcuts below.
Keys Action
⌘9 Show or hide Git log
⌘K Commit…
⇧⌘K Push…
⌥⌘T Update project
⌥⌘N New branch…
↵ Open the selected commit in Review