How can I reset user information on Magit?

279 Views Asked by At

I pushed a project from Spacemacs through Magit. It asked about username, email, password. But I must have typed incorrectly. It shows that a person with the same username pushed together. But I couldn't find a way to change user information on Magit.

enter image description here

1

There are 1 best solutions below

3
On BEST ANSWER

This was because git setting was missed.

You can avoid that with (for Git 2.8 and more)

git config --global user.useConfigOnly true

That way, if you try and commit while your user.name/user.email are *not defined, you would get an error message (instead of default metadata that won't show up properly once pushed)

no name was given and auto-detection is disabled
no email was given and auto-detection is disabled