ailinks:

Zed/git-commit

Open a commit

Opens the commit view for a specific SHA in a local repository.

macos · linux · windows · updated 2026-07-12

Format

zed://git/commit/{sha}?repo={path}

Try it

zed://git/commit/abc123?repo=/Users/me/projectOpen

What you supply

{sha}

The commit SHA to open.

{path}

Path to the local repository containing that commit.

URL-encode it — a path with spaces needs %20, and Zed's own tests cover exactly that case.

This reads a commit out of a clone that already exists on the machine, so it is a link for yourself and your team rather than for the public. It cannot fetch a commit you do not have.

Useful from a code review notification, or a git blame annotation, where the destination is a commit you want to see in a real editor rather than a web diff.