How can I set one of my email aliases as default for a repository/project? Edited

Git is configered with correct email address and user name and they show up fine in commits I push to the repository. However I noticed that for actions done trough the website Bitbucket uses my default email and name. 

For example in a merge commit (done from the site) there is: 


Approved by: My Bitbucket Name <default-email> 


I would like to use one of my alliases as the email for this particular repository and or project.

Is that possible?

Thank you!

1 answer

1 vote

Hi Boyan, I'm not sure if I'm following your description correctly. Are you saying you'd like Bitbucket to show the same email address and username that you've configured locally in your computer for Git?

Bitbucket uses the email address and username that are set as main for Bitbucket. If you want, you can change this email address and username at<username>/. If you want it to display a different email address or username only for a specific repository that's not possible at the moment, you'll need to create a different Bitbucket account and push from that one.

At the moment it's not possible to have multiple email addreses linked to your Bitbucket account. If you'd like, you can submit a Feature request to make it possible to have several aliases added to a Bitbucket account in our public issue tracker.

Hope this helps!


That's exactly what I want. I thought I can excape the complexity of multiple accounts by using email aliases, but for certain actions they are not the case.

Actually it's a bit simpler, I just want one of the aliases to be associated with particular repositories, so that it appears in commit messages made from the site.

Currently as a workaround I made my company email address primary (for code reviews etc) and for personal repositories I just use bitbucket as storage and interact with it only trough the git client.

@Boyan Yordanov did you ever submit that feature request? If not, I will submit one.

I also have a problem of Bitbucket using the wrong email address approving merge commits, and would like to be able to choose which one is used!

I agree completely @Charlie Gutjahr. Will you direct me to the feature request so I can support it.

@Jimmy Krag I didn't create a feature request because I didn't hear back from Boyan Yordanov. However it's still something I would like, so if you want to create the request I'll vote for it.

I went ahead and created as I could not find any issue about it. Feel free to comment/vote for it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

678 views 5 9
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