A Git worktree is an additional working folder connected to the same repository. It lets you check out another branch in a separate place without replacing the files in your current folder.

For example, you can keep one branch open in your editor while checking a bug fix in another worktree. Each folder has its own files, while the repository shares its saved history.

Worktrees are useful for switching between tasks, but they still belong to the same Git repository. Changes should be saved and managed carefully so you know which folder and branch you are editing.