---
title: "Git ワークツリー"
description: "gitā はリポジトリのワークツリーをブランチとエージェントとともに一覧表示し、新しいワークツリーにブランチをチェックアウトし、ワークツリーのタブをリポジトリとグループ化します。"
url: https://getgita.app/ja/features/worktrees
lang: ja
---

# 複数のブランチを 同時にチェックアウト

ワークツリーは、同じリポジトリに対して別のブランチを開いた2つ目のフォルダです。エージェント同士がぶつからずに並行作業するための仕組みであり、gitā はそれらをリポジトリの一部として扱います。

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

## 試してみること

1. ペイン上部のスタックアイコンをクリックして、エージェントがいないチェックアウトを一覧表示する。
2. ワークツリーの行を開いて、フォルダ、ブランチ、操作ボタンを見る。
3. **履歴に表示** をクリックしてそのブランチを見る。

## ワークツリー

- **リポジトリと並べて表示.** リポジトリのワークツリーはサイドバーと Worktrees & Agents ペインに表示され、それぞれのブランチと（動いていれば）エージェントが分かります。
- **新しいワークツリーにチェックアウト.** ブランチのメニューから専用のワークツリーにチェックアウトすれば、今の作業を止めずに済みます。ファイルメニューの「新規ワークツリー」では新しいブランチで作成できます。
- **それぞれにタブを用意.** ワークツリーは「リポジトリ名 / ワークツリー名」の専用タブで開きます。設定により、元のリポジトリのタブとグループ化しておくこともできます。
- **すでにチェックアウト済みの場合.** 別のワークツリーでチェックアウト済みのブランチなら、二重にチェックアウトする代わりに、そのタブを開く・フォルダを表示する・そこでターミナルを開くメニューを提示します。
- **安全な削除.** 「ワークツリーを削除」は、そこでエージェントが作業中なら警告を出し、未コミットのファイルを強制削除することは決してありません。

## 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.

[すべての機能](https://getgita.app/ja/features.md)

- **macOS 版をダウンロード:** https://github.com/rolottr/gita/releases/latest
- **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
