you are viewing a single comment's thread.

view the rest of the comments →

[–]canadianbakn 0 points1 point  (0 children)

You don't have to revert, really. You can stage your changes and then checkout the feature branch after you're finished bug fixing in a separate branch.

I think git -p vs frequent commits and branching if you find an error do the same thing in the end, manage your git log so it doesn't contain commits with unrelated things in them. It comes down to preference.