DEV Community

Judith ☁ Oiku
Judith ☁ Oiku

Posted on

How to change your last commit Author in Git

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay