Command

Git Set User Email Command

The Git command to set user email is git config --global user.email "you@example.com".

Quick Answer

Command
git config --global user.email "you@example.com"
GitCommand

Set User Email

Type this command
git config --global user.email "you@example.com"

Sets the email recorded on your commits.

Learn More

How to set user email in Git

  1. Open the terminal or command interface for Git.
  2. Type git config --global user.email "you@example.com", replace any placeholders, and run it.

Git Set User Email Command

Run git config --global user.email "you@example.com".

Related Commands

Frequently asked questions

What is the Git command to set user email?

Run git config --global user.email "you@example.com".

Where do I type this Git command?

Type it in the terminal or command-line interface used by Git.

Does this Git command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify