Hop: CLI tool for jumping around worktrees

2 pointsposted 7 hours ago
by Syntaf

1 Comments

Syntaf

7 hours ago

TL;DR `hop claude/57680` will cd you into the worktree for the branch.

I've wrote this tool so I can do things like `hop claude/57680 && vim index.ts` and quickly edit a file on a branch without having to ask claude to make small adjustments.

Found this pretty nice to work with when you have a lot of worktrees going and otherwise would need to be tracking down where to cd into a given worktree to find and edit a file on a given branch.