How to Change a Git Commit Message

Publicado em: 25 Novembro 2023
no canal de: Cameron McKenzie
1,667
39

Ever wonder how to change a git commit message after a commit has already been made in the repo?

Don't worry, it's not hard. A simple git commit amend command will allow you to update a Git commit message:

git commit --amend -m "New Git Commit Message"

That's it! That's how easy it is to amend a Git commit message after the fact.

Just know that changing the commit message actually creates a new Git commit, so if you've already pushed to GitHub or GitLab, you might not want to change the commit message, or you might really mess up the Git commit history!


Nesta página do site você pode assistir ao vídeo on-line How to Change a Git Commit Message duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Cameron McKenzie 25 Novembro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,667 vezes e gostou 39 espectadores. Boa visualização!