Identity: Change GIT author id and email

Posted on Updated on

Did you want to use a different author name and email then the default one GIT has for you?

Change Authorname:
git config --global user.name "New Authorname"

Change email:
git config --global user.email username@domain.com

 

“you need to do this only once if you pass the --global option, because then Git will always use that information for anything you do on that system. If you want to override this with a different name or email address for specific projects, you can run the command without the --global option when you’re in that project.”

https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s