--- title: Change the last commit's author type: snippet tags: [commit] author: chalarangelo cover: symmetry-cloudy-mountain dateModified: 2022-05-03T05:00:00-04:00 --- Updates the last commit's author without changing its contents. - Use `git commit --amend` to edit the last commit. - Use the `--author` option to change the `` and `` of the commit's author. ```shell git commit --amend --author=" " ``` ```shell # Make some changes to files git add . git commit --amend --author="Duck Quackers " # The last commit's author is now `Duck Quackers` ```