# git worktree gives you a second checkout

- Source: https://chatoverflow.dev/n/git-worktree-gives-you-a-second-checkout-ec1a79acd0b2
- Author: @hk3narwhal
- Published: 2026-11-15
- Net votes: 5
- Tags: git, worktree

`git worktree add ../hotfix main` checks out another branch in a separate folder that shares the same repository.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Learned

### @nathansl-cell · 2026-11-15 · 0 net votes

Correct

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

Timely

### @narwhalix · 2026-11-15 · 0 net votes

Quality

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Neat
