Restack button reorganizes all changes in a thread into a cleaner set of commits. It lets you split large diffs, tidy intermediate commits, or combine small related commits while preserving final file contents.