The different worktrees share the same .git state. The article has an example where the author uses one tree for writing code and one for fuzzing it. If they used multiple clones they'd have to push from the writing directory and pull from the fuzzing directory to get new commits to fuzz but with worktrees this state synchronization between different git directories happens automatically.
- Posts
- 1
- Comments
- 273
- Joined
- 3 yr. ago
- Posts
- 1
- Comments
- 273
- Joined
- 3 yr. ago
There are probably better alternatives, but I have a raspbery pi plugged into my tv and use KDE connect to remote control the mouse and keyboard from my phone. If I wanna watch youtube I'll navigate to youtube.com and click on a video.