DEV Community

loading...

How to change your last commit Author in Git

Judith ☁ Oiku
Full stack web developer - vueJs & Laravel
・1 min read

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.

Discussion (0)

Forem Open with the Forem app