First execute the following command to edit the comment on local repository.
git commit --amend
If the commit was pushed to remote before, force another push to the remote repository.
git push <remote> <branch> -f
First execute the following command to edit the comment on local repository.
git commit --amend
If the commit was pushed to remote before, force another push to the remote repository.
git push <remote> <branch> -f