Last updated November 6, 2013.

To be properly credited for your contributions on Drupal.org, you must identify yourself to each installation of Git you use (home, office, laptop, etc).

Identifying yourself to Git

Personalized versions of both of the below commands with your details filled in can be found on at "Your Dashboard" » Profile » Edit » "Git access".

From the command line:

git config --global user.name "User name"
git config --global user.email user@example.com
  • The "User Name" part is arbitrary, but it is customary to use your full name.
  • The e-mail address you use when you identify yourself creates the link between your commit and your Drupal.org user, so the value of user.email must correspond to an e-mail address for your account on Drupal.org for you to be properly credited with your commits. You can identify yourself with your automatically-generated anonymous identifier, which is formatted like an email address. This has the form username@12345.no-reply.drupal.org where it has your username and numeric user ID. You do not need to associate this with your account via the Multiple e-mails tab; it's automatically recognized.

To check your current identity:

git config -l

See also:

Comments

TortoiseGit

When you first install git and TortoiseGit you can use Git Bash as described in the Command-line instructions above. At any time later on you can change your name and address for a repository by:

1. Click "Settings" > "Git" > "Config"
2. Add your full name and email address.

For the three check box options on that page consult TortoiseGit Help.

One thing to note is that not using the "Sign" submit button in the commit dialog window will leave out your email address in your commit.

One thing to note is that not using the "Sign" submit button in the commit dialog window will leave out your email address in your commit.

Yep. And that's a Good Thing®. The "signed-off-by" thing is really useful primarily to an email-based workflow. Not what we do. Part of the whole point of switching to Git is that we can get away from sticking commit metadata as specially-formatted plaintext in commit messages. That's a relic that should die with CVS. Frankly, shame on TortoiseGit for granting such a not-typically-used feature of Git such prominence in their interface.

I wonder if it's a bad idea to start providing application specific instructions on this page.

It would be better to either remove this sort of application specific instruction, or more this to a sub-page of this page. What do you think?

If you, like me, use git for both contributed projects and company projects and use different email addresses for each you can set your details for each repository, like so:

$ cd /var/www/drupal/sites/all/modules/mymodule
$ git config user.email "my.contrib@email.com"

Set your global details to the details you most often use and which you want to be the default.

--
Jakob Persson - blog

I still don't get one thing: do we have to identify ourselves with our full name or with the Git username? If we must use our full name as recommended in the Git configuration (user account on the git-dev server), what's the role of the username that's being migrated from CVS?

Update: I found answers to my questions at http://drupal.org/node/1051722

At http://drupal.org/project/[Your_project_name]/git-instructions you can read

Although it is standard practice to use a functional address, you can also use the pre-configured address [username]@[UID]-no-reply.drupal.org.

(replace [username] with your actual username and [UID] with your actual user ID number). However, after [UID] the hyphen (-) is wrong and must instead be a dot (.)! If you identify yourself with the displayed e-mail address, your commits will not be recognized as yours!

I have reported that bug at #1243024: Major typo in drupal.org e-mail address.

-- Robert Allerstorfer