g k will paste the previous commit message in the commit message buffer when creating a commit in Magit. Further g k key presses will cycle backwards through the previous commit messages
g j will cycle forwards through commit messages
Scrolling through the commit history is a simple way to create consistent style of commit messages without having to look at previous commits separately.
Commit messages are remembered even after a reset (tested with soft reset)
Previous messages are only available once a commit is made. If a change is cancelled, , k before the commit then the message is not saved. Instead, select the message and yank into the kill ring before killing the commit.
g k
will paste the previous commit message in the commit message buffer when creating a commit in Magit. Furtherg k
key presses will cycle backwards through the previous commit messagesg j
will cycle forwards through commit messagesScrolling through the commit history is a simple way to create consistent style of commit messages without having to look at previous commits separately.
Commit messages are remembered even after a reset (tested with soft reset)
Previous messages are only available once a commit is made. If a change is cancelled,
, k
before the commit then the message is not saved. Instead, select the message and yank into the kill ring before killing the commit.