git:git-change-message-last_commit
Back to git main page
If you want to modify the message of the last commit :
$ git commit --amend -m "New commit message." $ git push --force <remoteName> <branchName>
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 .
git/git-change-message-last_commit.txt · Last modified: 2023/03/31 12:17 by 127.0.0.1