If you change the message of the most recently pushed commit, you would have to force push it.
1. Navigate to the repository.
2. Amend the message of the latest pushed commit:
git commit --amend -m "New commit message."
3. Force push to update the history of the remote repository:
git push --force <remoteName> <branchName>
Post a Comment