News for hackers. Stuff that matters.
Re:Fortunately, I don't squash my commits by Vinnl on Monday October 05, 2020 @02:11PM (#24690350)
But you need to deal with those conflicts before merging anyway? And they're a lot easier to deal with in the context of the individual commits than when dealing with one big merge commit, I find.
Re:Fortunately, I don't squash my commits by kelnos on Monday October 05, 2020 @04:38PM (#24691768)
The issue is that when you rebase, each commit in the chain gets re-applied, one by one. If you change something in an earlier commit that affects later commits, you could end up having to fix the same or similar conflicts several times before the rebase finishes (even with git's conflict resolution cache).

In contrast, if you instead merge, you only have to resolve conflicts once, for the merge commit.

That being said, I tend to be very fastidious about cleaning up my history before pushing, even if it means tedious, repetitive conflict resolution. But I do understand that other people might not think it's worth the trouble.

Re:Fortunately, I don't squash my commits by Vinnl on Tuesday October 06, 2020 @03:28AM (#24695459)
I think that can be resolved by rebasing onto the first commit of your branch to first make sure all the commits are minimal, and only then to rebase onto your main branch.

That said, I must say that I've personally experienced as a pain, so I don't actually do that.