Files
Advanced-Git/contents/switch-between-worktrees.md
T
2025-07-11 02:45:16 +00:00

688 B

⬅️ Back to How to Use git worktree Safely

⬆️ Previous Step: Remove a Worktree

Switch Between Worktrees

Category: Worktree

Command

cd <worktree-path>

Examples

  • Switch to the worktree directory.
cd ../feature-branch
  • Switch to a hotfix worktree.
cd ../hotfix

Steps

  1. Simply cd into the worktree directory to switch.

➡️ See the Next Step: Use Worktrees for Temporary Fixes


Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, switch