Remove files from Git commit

I am using Git and I have committed few files using

git commit -a

Later, I found that a file had mistakenly been added to the commit.

How can I remove a file from the last commit?

3
33

Leave a Comment