1

In git there is a command git commit --amend to edit one's last commit message (among other things). I was looking for this type of functionality in PyCharm and can't seem to find it.

When file changes are being added to an amended commit, the Commit Changes dialog shows a Amend commit checkbox, but I find no obvious way to amend only the commit message. (I can trick the checkbox into showing up by selecting a file, checking the Amend commit box, and then unselecting the file, but the Commit button is greyed out.)

Google turns up "How to edit a commit message in PyCharm?" but it was not answered satisfactorily (or perhaps it's not applicable to the current version?). The help page linked to in the previous question does not provide the answer, nor have I been able to find it in the rest of the docs. (Per meta.stack* suggestion I attempted to update the existing, unanswered question, but my edits were rejected.)

Further review turns up "Using IntelliJ to amend git commit message", a couple years old and without an accepted answer, and since PyCharm is based on IDEA, possibly applicable.

Is this even possible in PyCharm 4.5.3?

Community
  • 1
  • 1
Wil Cooley
  • 900
  • 6
  • 18
  • check also http://stackoverflow.com/questions/179123/edit-an-incorrect-commit-message-in-git – Anoop Toffy Aug 06 '15 at 02:02
  • Why not just do it in the terminal? – nalyd88 Aug 06 '15 at 03:29
  • Thanks; I do know how to do `git commit --amend` and I know there are other tools I could use; I'm trying to learn how to use the git features of PyCharm. (Possibly I should not have the _git*_ tags on the question.) – Wil Cooley Aug 06 '15 at 04:02
  • 1
    [This answer](http://stackoverflow.com/a/14089715/147024) is applicable to PyCharm and still valid. – yole Aug 06 '15 at 11:30
  • @yole Technically, it probably is a duplicate, but not obviously so -- you'd have to know that IDEA and PyCharm are based on the same code and plugins and assume that nothing has changed in 2 1/2 years. The JetBrains tickets that support referred me to are rather more conclusive. – Wil Cooley Aug 06 '15 at 20:05

1 Answers1

1

I submitted a support request with JetBrains (not expecting much since I'm using the free community version) and was directed to the following enhancement request tickets:

So, on the authority of JetBrains's support, this is not possible currently; future inquisitors may refer to the above tickets for status.

Wil Cooley
  • 900
  • 6
  • 18