$ git commitThis will change last commit message in your local repository. But if you have already pushed your changes to remote branches, Then you also need to push your changes again to remote server forcefully.--amend -m "Your updated commit message"
For example you need to push changes in master branch of remote origin.
$ git push origin master --force
Comments
Post a Comment