How to set user name and email in Git

To commit and perform such operations in Git, a user name and email need to be provided. These are global configuration values in Git.

  • Setting user name and email from the commandline is easy:
$ git config --global user.name "Average Joe"
$ git config --global user.email "joe@bloke.com"
  • These settings are written to the global gitconfig file of the user.

  • If you prefer using the TortoiseGit GUI to perform this operation, see this post.

Tried with: Git 1.8.0

Advertisements

2 thoughts on “How to set user name and email in Git

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s