Can one amend a git commit message using IntelliJ
, or should one resort to command line?
How can this be done please?
You can change the most recent commit message using the git commit --amend command. In Git, the text of the commit message is part of the commit. Changing the commit message will change the commit ID--i.e., the SHA1 checksum that names the commit.
View => Tool Windows => Version Control. (Windows (Alt + 9) / OS X (Cmd + 9))
IntelliJ 2017.1 and higher => Go to Log and right click + reword or press F2.
While you are on the same branch, ( your checked out branch is the same )
Amend is supported: invoke "Commit Changes" and select the checkbox "Amend commit" in the Commit Dialog. Then press "Commit" button, and the commit will be amended to the previous one.
However, the support is limited:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With