Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

History

Agrafe keeps versions of your files as you save them; small edits saved within about 15 seconds of each other are merged into one version. The History tab lists them, lets you compare any version with the current file and bring an old one back.

The timeline

Versions of all files are listed newest first, each with its file, its date and, for a grouped version, its group name. File: narrows the list to one file; All files shows them all again.

Video 5.1 · History, opening (0:04–0:24). Watch on PeerTube

The newest version of each file is marked HEAD: it is the file as it is now. Older versions may show as (pruned): they fell outside what your plan keeps.

PlanVersions kept per file
FreeThe latest two.
ProThe latest two, plus everything saved in the last 7 days.

Versions in a group are always kept.

Versions saved by an AI assistant through MCP show an mcp badge; hover it to see the client, the user and the message.

With one file selected, Graph view draws its history as a branch graph; List view goes back to the list.

Comparing and restoring

Click a version to open it next to the current file: a purple Diff: file @ version tab replaces the editor, with the differences highlighted. Close the tab (or click HEAD) to return to the editor.

Video 5.1 · History, chapter “Compare and restore” (0:23–0:50). Watch on PeerTube

On the selected version, press and hold Restore. Its content is saved as a new version on top of the current one: nothing in the history is lost, and you can restore the newer version again. If the version’s text is already the current text, nothing is saved and a message says so.

Grouping versions

Tick the boxes of several versions to act on them together:

ButtonAction
Group…Names the selection as a checkpoint, for example Before the big rename. A group may include several files. Its versions are never pruned.
Squash…Only when the ticked versions are the latest ones of a single file. Merges them into one version with the message you give.
ClearUnticks everything.
Video 5.1 · History, chapter “Checkpoints” (0:49–1:04). Watch on PeerTube

Groups are listed at the top of the timeline. Rename one with its pencil or delete it with its trash; deleting a group keeps its versions.

With git sync

When the project is connected to a repository with git sync, the History tab is split in two:

  • Since last commit, at the top, lists what changed since the last commit pushed to the followed branch. Autosaves (WIP commits) do not count as commits.
  • Followed branch, at the bottom, shows the commits of the followed branch.

After an automatic merge of remote commits, Since last commit first shows the notice “Merged at least N remote commits (range): files” with Undo auto-merge, as in the Git sync section (see Undo auto-merge).

Since last commit opens with a commit box: type a message, check the list of changed files, then press Commit. It does what Checkpoint… does in the Git sync section: one commit on the branch, then a push. The result of the push is shown under the box. Once the commit is pushed, the list empties: older versions are only hidden, never deleted, and the versions saved from then on fill it again.

Below the box, each changed file is a group you can fold, with an added, modified or deleted badge. A group lists the current version (HEAD) first, then the versions saved since the last commit, newest first. Click a version to compare it with the current file, hold Restore to bring it back, and tick its latest versions to Squash… them, as in the timeline. A deleted file has no current version. A renamed file shows as one deleted and one added file.

With nothing changed, the part reads No changes since last commit. The File: filter and the Group… button are not shown in this view.

Git commits replace groups while the project is connected: the Group… button, the group list and the rename and delete actions are hidden, and no group can be created. Existing groups are kept and show again if you disconnect git sync, along with the full timeline of every file.

Since last commit starts over each time the last commit moves:

  • a commit, from its commit box or from Checkpoint… in the Git sync section;
  • Import, Take remote or Overwrite remote in the Git sync section;
  • a switch to another branch;
  • a commit pushed by a collaborator. Agrafe has no live notice for it: the tab picks it up within a minute, or as soon as you come back to the browser window.

Starting over only hides the older versions. They stay in the history: the full timeline shows them again once git sync is disconnected, and Followed branch gives back each committed state of a file.

Followed branch

The lower half lists the followed branch’s commits, newest first, drawn as a graph like a file’s history: one dot per commit, lines to its parents, the tip at the top. Autosaves (WIP commits) are not on the branch and never show. Each row has the short commit id, the commit message’s first line and the date; hover it for the full id and the author. Badges mark:

  • a release tag (for example v1.2.0);
  • remote: the remote branch’s tip at the last fetch;
  • not pushed: a commit the remote does not have yet.

The list shows 50 commits at a time; press Load more for older ones. It reloads after a commit or a push.

Click a commit to list the files it changed compared with its parent (for a merge, its first parent; the first commit lists every file as added). Project files under the connection’s path prefix get actions:

  • View opens the file as it was at that commit, read-only.
  • Diff compares that version with the current file.
  • Hold Restore to save that version of the file as a new version. It shows at the top, under Since last commit, and you can undo it from there like any other save.

Other paths (import locks, files outside the path prefix) are listed without actions. A deleted file has no View, and a file that is no longer in the project has no Diff or Restore.