Set username/email on Git


To set Git global username and password on your system do the following:

Set username (e.g. Abby Normal)

git config –global user.name “ABBY NORMAL”

Set email (e.g. abby.normal@foobar.com)

git config –global user.email “abby.normal@foobar.com”

 

To configure repository specific values, change directory to the root of the repository and do the following:

Set username (e.g. Abby Normal)

git config user.name “ABBY NORMAL”

Set email (e.g. abby.normal@foobar.com)

git config user.email “abby.normal@foobar.com”

 

Now all your commits will be marked with your data.

To verify your settings, just display configuration file:

cat .git/config

Leave a comment

Your email address will not be published. Required fields are marked *