Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Add Zed as Git Editor example (#34572)
Peter Tripp0023773c68d8
diff --git a/docs/src/git.md b/docs/src/git.mdindex 642861c7b0d..76db15a767b 100644--- a/docs/src/git.md+++ b/docs/src/git.md@@ -151,3 +151,17 @@ When viewing files with changes, Zed displays diff hunks that can be expanded or| {#action editor::ToggleSelectedDiffHunks} | {#kb editor::ToggleSelectedDiffHunks} |> Not all actions have default keybindings, but can be bound by [customizing your keymap](./key-bindings.md#user-keymaps).++## Git CLI Configuration++If you would like to also use Zed for your [git commit message editor](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_editor) when committing from the command line you can use `zed --wait`:++```sh+git config --global core.editor "zed --wait"+```++Or add the following to your shell environment (in `~/.zshrc`, `~/.bashrc`, etc):++```sh+export GIT_EDITOR="zed --wait"+```