git:git-change-message-last_commit
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | git:git-change-message-last_commit [2023/03/31 12:17] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Back to [[git: | ||
+ | |||
+ | If you want to modify the message of the last commit : | ||
+ | <code bash> | ||
+ | $ 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 **. | ||
git/git-change-message-last_commit.txt · Last modified: 2023/03/31 12:17 by 127.0.0.1