Back to tips

Initialize Git Repositories with One Click

Turn any folder into a Git repository directly from the Git panel

git beginner February 26, 2026 · godruoyi
#git #initialization #workflow

When working in a folder that isn’t yet a Git repository, Zed now displays a Git Init button in the Git panel, making it effortless to initialize version control.

How to Use

  1. Open a project folder that isn’t a Git repository
  2. Open the Git panel (Cmd-Shift-9 on macOS, Ctrl-Shift-9 on Linux/Windows)
  3. Click the Git Init button
  4. Your folder is now a Git repository, ready for commits

No need to switch to the terminal or remember Git commands.

Why This Matters

Faster Setup: Start tracking your code in seconds without leaving the editor.

Beginner Friendly: No need to remember git init or use the command line.

Seamless Workflow: Start coding first, add version control when ready.

This is particularly useful when starting new projects or prototypes where you want to focus on coding first and add Git tracking as the project takes shape.