How are Git commit authors mapped to Bitbucket accounts

I'm trying to understand how Bitbucket associates a commit author with a Bitbucket account as we migrate from svn to Git. The commit author is composed of the user's first and last name and email address. E.g.,

Rich Mayfield <rich.mayfield@acme.com>

Here's what I've found:

  1. If the commit author's name and email address match the first+last name and email address in Bitbucket, match. Good.
  2. If the commit author's email address does not match an email address of a Bitbucket account, no match. Makes sense.
  3. If the email address matches but the author's name does not match the first+last name of the Bitbucket account, sometimes Bitbucket matches the commit to an account, sometimes not. The behavior I'm seeing is pretty inconsistent.

How important is it that the Git commit author's name match the first+last name of the Bitbucket account?

1 answer

As far as I know, it's only the e-mail part that counts. You can also map several e-mail address to a single account. Click your profile picture at the top right cornor then View Profile -> Manage Account -> Email. Here you can add several e-mail address for your account.

I was hoping that it was just the email address, however what I'm seeing is that the first and last name also factor into whether or not the commit is correlated to a Bitbucket account.

I have some commits with the correct email address but incorrect first and last name in the commit author information. I'm trying to reverse engineer this... it seems that it could be case insensitive and that a partial match may work (e.g. Will for William as a first name seems to work).

What further frustrates me is that some commits that were not matched earlier today are now correctly correlated to a Bitbucket account. All in all this seems to be amazingly flaky.

Hmm yeah that does seems a bit flakey, I haven't noticed it myself though (haven't tried it either). I found that you can map unknown commit users to your Bitbucket account, instructions can be found here. At that page they also mention that it's the e-mail part that's imporant.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

661 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot