#git-commit

I found a simple soloution!

git commit --amend -m "New commit message"

Taggings:

Hi, I had this problem already a few times, a good source for IntelliJ is: https://www.jetbrains.com/help/idea/edit-project-history.html#reword-commit
Even after pushing the commit, it is possible to change the message.
If you have not pushed yet this is a solution (for IntelliJ):

• Right-click the commit whose message you want to edit in the Log tab of the Git tool window Alt+9 and select Edit Commit Message from the context menu, or press F2.

• In the dialog that opens, enter a new commit message and click OK

You can also use the "git commit --amend" command.

I hope this helps!

How to edit a commit message on GitHub?

I made a mistake while writing the commit message. Is there a way to change the message? The commit has not been pushed yet.
Subscribe to #git-commit