git.md

 1# Git
 2
 3Zed currently supports the following Git features:
 4
 5- Diff indicators in buffers and editor scrollbars
 6- Git status in the project panel
 7- Branch creating and switching
 8- Git blame viewing
 9
10More advanced Git features—like staging and committing changes or viewing history within Zed—will be coming in the future.
11
12## Git Integrations
13
14Zed integrates with popular Git hosting services to ensure that git commit hashes
15and references to Issues / Pull Requests / Merge Requests become clickable links.
16Zed currently support links to
17[GitHub.com](https://github.com),
18[GitLab.com](https://gitlab.com),
19[Bitbucket.org](https://bitbucket.org),
20[SourceHut.org](https://sr.ht) and
21[Codeberg.org](https://codeberg.org).
22
23Zed also has a Copy Permalink feature to create a permanent link to a code snippet on your Git hosting service.
24These links are useful for sharing a specific line or range of lines in a file at a specific commit.
25Trigger this action via the [Command Palette](/docs/#command-palette) (search for `permalink`),
26by creating a [custom key bindings](/docs/key-bindings#custom-key-bindings) to the
27`editor::CopyPermalinkToLine` or `editor::OpenPermalinkToLine` actions
28or by simply right clicking and selecting `Copy Permalink` with line(s) selected in your editor.