Undo your last GIT commit

If you have accidentally added the wrong file or didn’t add an important file to the last commit, you can either reset the last commit completely or just modify the last commit, modifying the last commit should be sufficient if you only need to do some minor modifications, and you are ready with the new changes that you want the files to be committed with, otherwise, you may need to reset the last commit, then continue editing, and later re-committing, .. this article will show you how do both, and how to recover in case of accidentally reseting an important commit.

Continue reading Undo your last GIT commit