622 B
622 B
title, tags, expertise, author, cover, firstSeen
| title | tags | expertise | author | cover | firstSeen |
|---|---|---|---|---|---|
| Change the last commit's author | commit | intermediate | chalarangelo | blog_images/symmetry-cloudy-mountain.jpg | 2022-05-03T05:00:00-04:00 |
Updates the last commit's author without changing its contents.
- Use
git commit --amendto edit the last commit. - Use the
--authoroption 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`