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.com instead of @
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.com"
git config user.email
Open Git Bash.
Set your email address with the following command:
git config --global user.email "your_email@abc.com"
git config --global user.email
GIT_COMMITTER_EMAIL=your_email@abc.com
GIT_AUTHOR_EMAIL=your_email@abc.com
PD: Info from github official guide
According to the git documentation, all you should have to do is re-run
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
Then just check to make sure the change took effect
$ git config --list
This is listed in the Pro Git book, written by Scott Chacon and Ben Straub
1.6 Getting Started - First-Time Git Setup
Edit your email directly in the JENKINS_HOME/users/YOUR_NAME/config.xml
configuration file and restart the Jenkins server
To set your global username/email configuration:
Open the command line.
Set your username:
git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address:
git config --global user.email "MY_NAME@example.com"
To set repository-specific username/email configuration:
From the command line, change into the repository directory.
Set your username:
git config user.name "FIRST_NAME LAST_NAME"
Set your email address:
git config user.email "MY_NAME@example.com"
Verify your configuration by displaying your configuration file:
cat .git/config
For more information and for other version control systems .. => SeeThis
use
"git -c user.name="your name" -c user.email=youremail@email.com commit --amend --reset-author"