Today we will understand how to revert any mistake we do when we checkin our code to git hub.
We have commited (88e1246c30427b624c48dfb0012b27c55e8e6f1e) hash in github repository. This commit has some error and we need to revert the code back to commit (05f4be112f24cc1a9f0922f2c9a9297be429f55b)
1) git revert 88e1246c30427b624c48dfb0012b27c55e8e6f1e
This will revert the code base in your local system and NOT in git repository.
2) git push origin master
The above command is to upload the changes to git repository.
Advantage of this command is it helps to keep the log of the revert done as shown below.