Commit History

In a Workspace that's a Git repository, the folder page has a Commit History button next to the big title. It opens the list of commits in the current worktree. Pick a commit and the top of the sidebar lists the files it changed; click one to see in a tab what changed in it that time. Looking at history is only looking: it doesn't switch branches, check out old versions, or change files on your disk.

The commit list is free. Opening a commit to see its changes is a Plus feature; without Plus, the list's title has a PLUS badge. See Free, Plus and the 14-day trial.

  1. Click the Commit History button next to the big title. The commit list pops up, newest first; scroll down to load earlier ones.
  2. Use the search field at the top (Search Commits or SHA) to find a commit by its message or SHA. It only searches commits that have loaded.
  3. Click a commit. The list closes, and a section for that commit appears at the top of the sidebar, listing the files it changed with the lines added and removed.

The button is on Pinned Folder pages too; the section there lists the whole commit, not just that folder.

Click a file in the section to open it in the current tab:

  • For a modified or renamed file, you see the before-and-after comparison for that commit, read-only. Turn off Show Diff to see the full content after that commit.
  • For a file the commit deleted, you see it as it was before the deletion, marked as deleted.

Meanwhile, History in the Inspector on the right stays on this commit. When you're done, click × on the section to close it.

To see which commits a single file went through, open it and look at Git in History in the Inspector on the right. It lists only the commits that changed this file, following it back past renames. See History of a single file.

  • You can't restore a whole commit from Commit History, or undo or revert commits. A single file can be restored to how it was in a commit, from History in the Inspector.
  • You can't make commits, create or delete branches, or stash here. Use your Git tools for those.
  • You see the commits reachable from where the current worktree is now. To see another branch, switch to it first; see Worktrees and branches.

Remote Git repositories have Commit History too, read from the remote computer. Remote files can't be restored from history.