|
|
|
|
|
by ahartmetz
125 days ago
|
|
No, you wouldn't. git rebase -i is to remove noise, which is about merging commits that, well, make more sense together than apart. Which is mostly about summarizing trivialities (e.g. several typo fixes) and squashing fixups into commits that introduced a problem in the same branch. A typical bugfix branch might look like this after rebase -i: Move property to a more appropriate place Improve documentation of feature Foo Fix accidental O(n^2) in feature Bar Fix interaction of Foo with Bar |
|
The commit message is what's more important. I don't think I've ever needed what is in a merged branch. But I've always wanted the commit at one point to have tests passing and a good description of the patch. And all the talk in the engineering team are always about ticket. It does makes sense to align those.