I have a project hosted in Git stash (now rebranded as Bitbucket Server). It is built using Jenkins.
Now I made a typo while installing my Git locally.
Like @ab.example
instead of @abc.example
After every build, Jenkins sends email notifications and it picks up my incorrect email address from Git commit and tries to send it.
Even after I have changed the email address in my local Git, I still see Jenkins sending the emails to the old incorrect address.
How can I fix this?
Open Git Bash.
Change the current working directory to the local repository in which you want to set your Git config email.
Set your email address with the following command:
git config user.email "your_email@abc.example"
git config user.email
Open Git Bash.
Set your email address with the following command:
git config --global user.email "your_email@abc.example"
git config --global user.email
GIT_COMMITTER_EMAIL=your_email@abc.example
GIT_AUTHOR_EMAIL=your_email@abc.example
PD: Info from GitHub official guide