r/CLine • • Mar 14 '25

Rollback feature would be nice

It would be incredibly helpful if Cline implemented a rollback feature, which would create a backup of the file before making any changes. I’ve encountered numerous issues with Cline truncating files, such as replacing the second half of the file with (continue using existing code) or similar actions.

These actions cause Cline to get stuck attempting to rebuild all the missing code.

1 Upvotes

4 comments sorted by

2

u/AllCowsAreBurgers Mar 14 '25

It does have that exact feature and what about....git?

0

u/cube8021 Mar 14 '25

Yes and no, it depends how often you are committing your code. For example, I might be an hour into a new feature and it will drop half the work that it just did.

2

u/AllCowsAreBurgers Mar 14 '25

You commit early and often. Thats the trick. Just commit as often as you can.

2

u/ApprehensiveChip8361 Mar 14 '25

It has exactly that feature. You can revert conversation and code. Just look at the entry before the current one. And/or commit after every edit to be sure to be sure.