3 ms·
Personally this sounds completely reasonable to me (especially with lazygit) > You can stash everything, create a new branch, switch to it, fix the bug, commit
by corytheboyd 3y ago
Personally this sounds completely reasonable to me (especially with lazygit)
> 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.
Also comfortable with fixing the bug on my current branch, leaving it there to validate as I complete the other stuff, then later pull commits out to new branches to create atomic PRs. Assuming the bug can wait that is, otherwise yep off to a new branch, and no amount of git magic prevents an interruption from being disruptive.
I know worktrees are a thing but I feel like the branching model is enough complexity to both be useful and remember. No problem if people want to use a more complex workflow with a GUI, this is for them, not for me.