I have a main branch and a feature branch. The feature branch is several commits ahead of the main branch, and I'd like to merge the feature branch into the main branch. I don't intend to --squash
and I don't want to rebase
because I like preserving the history.
I like to summarize what changed in the merge's commit message because the feature branch history can get convoluted, and a good starting point for me is to copy & edit all of the commit messages from the feature branch's assorted commits since the last merge.
I vaguely remember reading somewhere that git can compile these messages for me, but I don't remember where I read that or how to do it.
Apologies if this is a duplicate, but several Google and SO searches have failed to bring this up.
Edit: Essentially what I'm trying to do is build a changelog for everything that changed between releases.