Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've noticed in git and various scripts, there is a default user email address. This seems to default to user user@ubuntu.ubuntu-domain. Is there a way for me to set this to my ral email address?

share|improve this question

Most programs use USER@HOSTNAME as the default email address, where USER is the username you are using and HOSTNAME is the fully qualified hostname of your computer. Some programs may use the environment variable $EMAIL if it's set, but there's no real standard for that so the only save way is to configure it for every program. Sad but true.

share|improve this answer

As Florian Diesch said, the username and machine hostname or localhost are often used to denote the default email address.

You can set your email address for git by adding your email address to .gitconfig:

    email =
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .