rename the commit message in git code example
Example 1: change git commit message
git commit --amend -m "New commit message"
Example 2: change commit message
git commit --amend
// press enter, editor would open
Example 3: change message commit git
git commit --amend -m "New commit message."
Example 4: how to change a commit message
git commit --amend
git push --force-with-lease <repository> <branch>
Example 5: rename file in git commit
> $ git mv css/iphone.css css/mobile.css
> $ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# renamed: css/iphone.css -> css/mobile.css
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: index.html
#