Does magit offer a way to squash a bunch of commits, but preserve some sort of record of the micro commits - should you need to step through them the next day.
Just create a branch before squashing.
- Optional: copy the name of the current branch (you can find it on the first line of the
b nto create a new branch. Paste the name of the current branch if it helps you, and give the new branch a unique name (e.g. with a
(But better yet, don't squash. A detailed commit history is useful and squashing rarely has any benefit.)
Magit does not provide any feature specifically for this use-case. It does however expose a
git feature that can be used in this and other situations when you have to recover some discarded work: the reflog.
The reflog commands are available from the same popup menu as the log commands: l.
Search the web for information about what the reflog is and how to use it.
While viewing a reflog you can use l o RET to view the log for the reflog entry at point.