Having that we commited some code with a wrong message, how can we edit the last commit?
If the code has not been pushed yet, the command git commit –amend will do the trick. Example :
git commit –amend -m “The new edited message”
Then just push your code normally.