How to squash last X commits together in git?
Initially, when I started working on git, I was terrified of squashing commits, I always feared that I will do it wrong and will lose some code, but it's very simple once you understand the underlying logic.