I reject universal rules for choosing among Git merge, rebase, and squash; the right choice should not be framed as one approach being correct in every situation.
I strongly disagree with anyone who says one Git strategy is right “100% of the time.”
I’m asked about choosing between merge, rebase, and squash pretty regularly.
Because I’m asked regularly, I decided to “put my copy paste answer I always use and put it in a gist”: https://t.co/LqXLbRsuNE.
I shared this Git workflow guidance on 2023-12-01 22:16 UTC.
Related: pull requests and code quality, github bugs and reliability, adopting jujutsu