How to Edit a Git Commit Message

preview_player
Показать описание
In this short, I will show you how you can edit a git commit message after it's already been committed. Sometimes you notice that there is a typo in the git commit message, sometimes you notice that you forgot a prefix/hook, or sometimes you are just missing something. Whatever the reason, sometimes you are going to want to edit a commit message after it's already been committed. You can easily do this by using the --amend flag. This will open up an editor that will allow to change the message. Once saved, the message will be overwritten!

#shorts
Рекомендации по теме