How to Undo Git Commit Locally?

What is Git? Sometimes, User commits the code accidently and then he realize that something is wrong or missing in our code. Suppose below is your accidental commit. In such …