You made changes in your repository. You made the commit and at the very same moment you realize that it’s not completely correct.
You need to fix the last commit.
Git provides possibility to amend last change.
Type command for git gui interface:
Click radio button Amend Last Commit.
You can change the commit message or remove staged item by double click.
When you made all necessary changes click Commit.