From the source
Amp added a Restack button that organizes all changes in a thread into a cleaner set of commits, allowing users to split large diffs, clean up intermediate commits, or combine small related changes without altering final file contents.






