Back to [[git:main-git|git main page]] If you want to modify the message of the last commit : $ git commit --amend -m "New commit message." $ git push --force Be sure that the web repo is allowing forced push. In GitLab for example, it's not set for master by default. To allow it, go in ** Settings -> Repository -> Protected Branches **.