Hacker News new | ask | show | jobs
by marcellus23 841 days ago
> You need to do something with your WIP in either case

Why not just commit it?

1 comments

Sure. In terms of steps taken it's not particularly different though. Stash at the start and pop at the end vs commit at the start and reset at the end, right?

I mean, if it's not a problem to do that (and I don't find either option a problem personally) then fine, but it doesn't seem like it's a "better" option except in some small cases (like forgetting you stashed).

I'm so confused. Blog author said this:

> You can stash everything, create a new branch, switch to it, fix the bug, commit and push it, then switch back to what you were working on.

And OP said this (snarkily)

> Why couldn't you, like, create another branch off of main, switch to that, and fix the bug there, then resume working on your feature branch?

They're the same except the blog author was more specific!