git: commit with the wrong email
β’ 59 words β’ 1 min β’ updated
You are sending a PR upstream.
You accidentally commit it with the wrong email.
First, you prevent this mistake from happening again by updating your
~/.gitconfig.
And now you need to fix the most recent commit.
You can easily do so with:
shell
% git commit --amend --reset-author --no-editAlternatively, with my aliases:
shell
git uncommit && git recommit