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 remove a file or directory from Git without deleting it from your working directory? There are several situations when you have to remove some part of your code from git history. Doing so is very easy if you know these commands.
How to remove a file or directory from git without deleting it from your working directory? You have to remove some part of your code from git history in several situations. Doing so is very easy if you know these commands.
How to discard local modifications in git? Everybody has their own way of writing code, and there are times when you try out a few ways of creating a functionality or fixing that nasty bug, which is not such a good way of doing it. If you want to discard your current changes, you can do it easily by checking out the modified files.
How to revert the last X commits? The simplest way of revering commits is to reset your head to the last commit you want and just discard the changes, here is how you can do it.
How to change the message on the last commit in git? Making amends is easy when you know the right command to do it.