News for hackers. Stuff that matters.
Re:Claude Sonnet 4 now supports 1M tokens of context by rvnx on Tuesday August 12, 2025 @01:05PM (#44879081)
Thank you for the tips, do you know how to rollback latest changes ? Trying very hard to do it, but seems like Git is the only way ?
Re:Claude Sonnet 4 now supports 1M tokens of context by SparkyMcUnicorn on Tuesday August 12, 2025 @02:30PM (#44880111)
I haven't used it, but saw this the other day: https://github.com/RonitSachdev/ccundo
Re:Claude Sonnet 4 now supports 1M tokens of context by gdudeman on Tuesday August 12, 2025 @02:02PM (#44879784)
Git or my favorite "Undo all of those changes."
Re:Claude Sonnet 4 now supports 1M tokens of context by spike021 on Tuesday August 12, 2025 @02:47PM (#44880288)
this usually gets the job done for me as well
Re:Claude Sonnet 4 now supports 1M tokens of context by rtuin on Tuesday August 12, 2025 @06:51PM (#44882689)
Quick tip when working with Claude Code and Git: When you're happy with an intermediate result, stage the changes by running `git add` (no commit). That makes it possible to always go back to the staged changes when Claude messes up. You can then just discard the unstaged changes and don't have to roll back to the latest commit.