How to undo the last local commit in Git?
Recently I was making some changes to a local git repository and I committed some changes and files that I should not have committed.
I did not run git push so the changes were only committed to my local Git repository.
Here's what you could do: