If you want to check your configuration settings, you can use the git config --list command to list all the settings Git can find at that point: $ git config --list user.name=John Doe user. [email protected] color.
You can use the git config command to change the email address you associate with your Git commits. The new email address you set will be visible in any future commits you push to GitHub.com from the command line.
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 "[email protected]"
git config user.email
Open Git Bash.
Set your email address with the following command:
git config --global user.email "[email protected]"
git config --global user.email
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 [email protected]
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
use
"git -c user.name="your name" -c [email protected] commit --amend --reset-author"
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 "[email protected]"
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 "[email protected]"
Verify your configuration by displaying your configuration file:
cat .git/config
For more information and for other version control systems .. => SeeThis
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With