How to change commit message in git
lang_of_article_differ
want_proper_trans
Sometime in a hurry you can make a mistake in commit's message and need to change it before pushing to remote. There's a possiiblity to change last's commit message before you push it to remote repository.
This can be done by --amend
option of commit
command:
git commit --amend -m "new message to your commit"
Voila
Your last commit has new commit message, you can check it out by typing
git log