Updates the last commit's author without changing its contents.
git commit --amend
to edit the last commit.--author
option to change the <name>
and <email>
of the commit's author.git commit --amend --author="<name> <email>"
# Make some changes to files
git add .
git commit --amend --author="Duck Quackers <cool.duck@qua.ck>"
# The last commit's author is now `Duck Quackers`
Git, Commit
Updates the last commit's message without changing its contents.
Git, Commit
Updates the last commit's contents without changing its message.
Git, Commit
Removes a file from the last commit without changing its message.