Change Last Commit Message
We can use git commit --amend
command to change the most recent commit message.
Usage
For Local Commits
For Already Pushed Commits
In this case, we can only edit the most recent commit message and force push it to remote -
Note: Force Pushes can break things, so warnings ahead!
Source: Linuxize
Last updated