How to remove a file from the previous commit? Sometimes, you would want to remove a specific file or part of the code from your last commit.
How to revert pushed commit from the repo? Despite all the fixes you try, faulty commits occasionally make it into the central repository. Still, this is no reason to despair, since git offers an easy way to revert single or multiple commits.
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.
How to move accidentally committed changes to a brand new branch in git? Moving between different branches is tricky if you don't remember all the steps, but you can always bookmark this page.
How to change the message on the last commit in git? Making amends is easy when you know the right command to do it.