--amend
only rewrites the immediately preceding and last commit on the branch, not any previous ones, but its a start.
--fixup
as suggested by @b4n allows for marking a commit as a fixup of any unmerged previous commit (not just the last one) and --autosquash
will combine them. So a reviewer can see in the log that they agreed with the proposed squash and the author needs only one command to do it. But I don't know of any small to medium projects where its used regularly, I presume the kernal does, but examples like Julia or LLVM do not mention it and neither does the Github tutorial. Again unusual or different workflows just raises the bar to contributions.
@andy5995 I didn't "suggest" anything here because a) I'm not sure what we want to do, and b) it only supports one liners (so far) but handy.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.