Skip to content

Hop: CLI tool for jumping around worktrees

github.com/Syntaf
2 pointsSyntaf1 comment
On HN

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.