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