Overview
Git Worktrees allow you to work on multiple branches or revisions of a repository simultaneously by creating additional working directories. Each Worktree is a fully functional Git repository linked to the same .git directory, enabling you to work independently on separate branches without affecting your primary working directory. This is especially useful for multitasking, such as developing features in parallel, testing, or managing multiple environments.
With Tower’s Worktree integration, you can easily create, check out, and manage Worktrees directly from the app, making it seamless to incorporate this powerful Git feature into your workflow.
Worktrees in Tower
Tower's sidebar lists all of your project's Worktrees.
- Easily Access Worktrees: Worktrees are listed in the repository sidebar under the “Worktrees” section. Branches checked out in a Worktree are marked with a small “+” badge for easy identification.
- Switch Between Worktrees: Quickly switch to a Worktree by double-clicking its entry in the “Worktrees” section or by double-clicking a branch that is backed by a Worktree.
- Add New Worktrees: Create a Worktree by clicking the button at the bottom of the sidebar and selecting . Alternatively, right-click a branch and choose to turn any branch into a Worktree instantly!
- Remove Worktrees: Remove a Worktree by right-clicking its entry in the “Worktrees” section or by right-clicking a branch and selecting . This allows you to clean up Worktrees that are associated with branches and no longer needed.