Q:

git amend last commit message

$ git commit --amend -m "New and correct message"
10
git commit --amend -m "New commit message."
15
$ git commit --amend -m "New and correct message"
7
git commit --amend -m "New commit message"
Then
git push --force
and you're done
5
git commit --amend
4
git commit --amend
// press enter, editor would open
1
git commit --amend -m "New commit message"
0
# Displays a list of the last commits
# Just replace a name with another one and save and close the file
git rebase -i HEAD~3
-1

New to Communities?

Join the community