How can we change a commit message in GIT?

If a commit has not been pushed to GitHub, we can use git commit –ammend command to change the commit message.

When we push the commit, a new message appears on GitHub.

Leave a Reply

Your email address will not be published. Required fields are marked *