Hacker News new | ask | show | jobs
by daveguy 396 days ago
Why not create a branch and rollback only what needs to be rolled back? Branches are O(1) with git, right?
1 comments

OP was insinuating that rolling back commits is a pain point.
Well, same statement applies. Rolling back commits is also O(1) and just as easy. And if you branch to start with it's not even a "rollback" through the commit history, it's just a branch switch. Feel like OP has never used git before or something.
Which seems like a tooling issue, imo. In Aider, it's just /undo.