W
W
Wasya UK2021-07-21 12:40:56
git
Wasya UK, 2021-07-21 12:40:56

How do I change the author of my commits?

I made a pull request, but from my other git account. Locally already changed to my main one, but the pull request remained. Is it possible to change the commit author? And it turns out that I pushed from one, and wrote the code from another.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
snxx, 2021-07-23
@dmc1989

Since you were given the answer, I can only say that next time you need to change the git config through the console:

$ git config --global user.name "John Doe"
$ git config --global user.email "[email protected]"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question