Hacker News new | ask | show | jobs
by coolmitch 981 days ago
i see a lot of people doing this, and especially if theyre shallow clones, its really not a big deal

and anyway git-worktree is basically this workflow wrapped in nicer UX

1 comments

Worktrees are super useful to avoid interrupting your work in progress when you need to load another branch to help someone debug something.
Ha. I typically stash and checkout the other branch or commit a wip that I’ll undo when I’m back and checkout the other branch.