The following steps can be used to change Author in Git:
- launch terminal.
- run
git commit --ammend --author="Author's name<email address>"
. This opens the vim editor to edit and save changes. - press
esc
on your keyboard to switch to command mode. - press
:
(colon) to open the prompt bar at the bottom of the vim editor. - type
x
after the colon and press enter.
This will save the changes made and exit the vim editor.
visit my blog for more related articles.
Top comments (0)