-1

I am using GIT on IntelliJ and I have the following problem.

I have done a commit with a wrong text message (I have commited it into my staging area but not pushed on the remote repository). I want to change it. I thino that (from command line) I can change the comment of my last commit performing the command:

git commit --amend

How can I do the same thing by the IntelliJ GIT tool?

Bastien Jansen
  • 8,616
  • 2
  • 33
  • 51
AndreaNobili
  • 38,251
  • 94
  • 277
  • 514
  • 1
    Possible duplicate of [Using IntelliJ to amend git commit message](http://stackoverflow.com/questions/14075919/using-intellij-to-amend-git-commit-message) – phaze0 Dec 09 '16 at 19:17

1 Answers1

0

You can do it on the time you rebase your changes to remote branch.

  • VCS -> Git -> Rebase. Check Interactive. Choose your branches and continue.

enter image description here

  • Choose reword from the drop down forward to your commit. Start rebasing.

enter image description here

  • From the next window, you can change your commit message and resume rebasing. :))

enter image description here

Anyway for this kind of things which can be done by simple commands, it is much easier and fast to use the commands.

git commit --amend "<new message>"

In overall for git, it will be much efficient to use commands rather than tools. :))

Supun Wijerathne
  • 10,994
  • 9
  • 49
  • 82