Search code examples
gitmagit

Magit - rename last commit


How do I rename the last commit in Magit (ie. edit the commit message) ?

I can see it in magit-log-buffer-file, but I don't know how to interact with it.


Solution

  • Press c (Commit), then a (Amend), edit the message, C-c C-c, profit!