Files
Advanced-Git/contents/switch-between-worktrees.md
2025-07-11 03:43:15 +00:00

684 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.**

```sh
cd ../hotfix```


#### Steps
1. Simply cd into the worktree directory to switch.


[➡️ See the Next Step: Use Worktrees for Temporary Fixes](./use-worktrees-for-temporary-fixes.md)

---

_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, switch_