I was wondering if there was a git rebase --interactive "squash" alternative, that instead of letting me edit and manually combine the commit messages from multiple commits that I want squashed together, instead simply used the first and folded the other commits into that? I often find myself in the following pattern: branch, hack, commit. hack, commit, hack, commit git rebase --interactive master squash later commits into an earlier one repeated [hack, commit]+, rebase, squash merge At which point, 99% of the time I want to fold the later commits into an earlier commit, keep the commit message of the first and throw the remaining commit messages into /dev/null. I understand this is just a matter of editting the commit messages, but I'm lazy and I find myself repeatadly dumbly deleting the latter commit messages again and again. A $EDITOR macro/extension might address this, but it seems (to me) cleaner to extend the rebase command set: < pick, edit, squash > pick, edit, squash, fold "fold" is perhaps the wrong word. "squish" is perhaps too similar. "rollup" maybe? In any event, functionally it would do exactly the same as "squash", except rather than let you edit the commit messages it would instead simply use the commit message of the first commit. And throw the other commit messages away. I'm not adverse at having a go at putting a patch together (although this is not my forte), but I thought I'd check there wasn't prior art or a good reason why this would be a "bad thing" to have? Murray. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html