mirror of
https://github.com/mike-rambil/Advanced-Git.git
synced 2026-05-02 04:59:17 -05:00
688 B
688 B
⬅️ Back to How to Use git worktree Safely
⬆️ Previous Step: Remove a Worktree
Switch Between Worktrees
Command
cd <worktree-path>
Examples
- Switch to the worktree directory.
cd ../feature-branch
- Switch to a hotfix worktree.
cd ../hotfix
Steps
- 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