<p></p>
<p dir="auto"><code>--amend</code> only rewrites the immediately preceding and last commit on the branch, not any previous ones, but its a start.</p>
<p dir="auto"><code>--fixup</code> as suggested by <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/b4n/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/b4n">@b4n</a> allows for marking a commit as a fixup of any unmerged previous commit (not just the last one) and <code>--autosquash</code> 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.</p>
<p dir="auto"><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/andy5995/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy5995">@andy5995</a> 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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2059#issuecomment-991822257">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY2YVNYFUSKLOWYMCTUQQA4TANCNFSM4GQ4PEIQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ452N3FKMIYWYARZV3UQQA4TA5CNFSM4GQ4PEI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHMPADMI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2059#issuecomment-991822257",
"url": "https://github.com/geany/geany/pull/2059#issuecomment-991822257",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>