---
title: "Worktrees do Git"
description: "O gitā lista as worktrees de um repositório com seus branches e agentes, abre um branch em uma nova worktree e agrupa a aba da worktree com seu repositório."
url: https://getgita.app/pt-br/features/worktrees
lang: pt-BR
---

# Vários branches em checkout ao mesmo tempo

Uma worktree é uma segunda pasta para o mesmo repositório, em outro branch. É assim que agentes trabalham lado a lado sem atropelar uns aos outros, e o gitā as trata como parte do repositório.

A live copy of the app is on the page: https://getgita.app/pt-br/features/worktrees

## Coisas para testar

1. Clique no ícone de pilha no topo do painel para listar checkouts sem agente.
2. Abra a linha de uma worktree para ver sua pasta, branch e botões.
3. Clique em **Mostrar no Histórico** para ver seu branch.

## Worktrees

- **Listadas com o repositório.** As worktrees de um repositório ficam na barra lateral e no painel Worktrees e Agentes, cada uma com seu branch e seu agente, se houver.
- **Checkout em uma nova worktree.** Pelo menu de um branch, faça checkout dele em uma worktree própria e continue trabalhando onde está. Nova Worktree no menu Arquivo cria uma em um novo branch.
- **Uma aba para cada.** Uma worktree abre em sua própria aba, nomeada com o repositório e a worktree. Uma opção mantém essa aba agrupada com a do repositório.
- **Já em checkout.** Se um branch já estiver em checkout em uma worktree, o menu dele oferece abrir aquela aba, revelar a pasta ou abrir um terminal lá, em vez de fazer checkout duas vezes.
- **Remoção cuidadosa.** Remover Worktree avisa se um agente estiver trabalhando lá e nunca apaga à força arquivos que você não commitou.

## Questions, answered

### Can I check out two branches at once?

Yes. From a branch's menu, check it out in a worktree of its own, a second folder for the same repository, and keep working where you are. Each worktree opens in its own tab.

### What happens to a worktree an agent is using?

Remove Worktree warns you if an agent is working there, and never forces away files you have not committed.

[Todos os recursos](https://getgita.app/pt-br/features.md)

- **Baixar para macOS:** https://github.com/rolottr/gita/releases/latest
- **Ver no GitHub:** https://github.com/rolottr/gita

---

Apple, macOS and Mac are trademarks of Apple Inc. Git is a trademark of Software Freedom Conservancy. GitHub is a trademark of GitHub, Inc. Vercel is a trademark of Vercel Inc. Claude is a trademark of Anthropic, PBC. gitā is independent software and is not affiliated with any of them. Issues: https://github.com/rolottr/gita/issues
