Get started with Bitbucket Cloud
New to Bitbucket Cloud? Check out our get started guides for new users.
When you make commits on your local system and push them to Bitbucket Cloud, the commit data determines which account name to attach to the push.
To ensure your commits in Bitbucket appear with your user account, it must meet two conditions:
You've configured Git with a global username/email address and an optional repository-specific username/email address, as described on this page.
You've added the email address as an email alias and validated it. See Set email aliases.
Otherwise, Bitbucket doesn't associate your account with the commit. Instead, the username attached to the commit will either be based on your computer username or only your DVCS username.
In the following image for example, the second (top) commit includes a mapped username with a validated email address. Alternatively, the user on the initial (bottom) commit was configured locally but isn't mapped. When you hover over the avatar or username, you'll see: Author not mapped to Bitbucket user.
Once you've pushed an unmapped commit to a repository, an administrator for that repository can add your email address as a username alias. See Map existing commits to username aliases for more details.
To associate your email address with local commits, start by configuring a global username/email and an optional repository-specific username/email. If you don't specify repository-specific values, the commit defaults to using the global values you set.
You typically configure your global username and email address after installing Git. However, you can do so now if you missed that step or want to make changes. After you set your global configuration, repository-specific configuration is optional.
Git configuration works the same across Windows, macOS, and Linux.
Open the command line.
Set your username:
git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address:
git config --global user.email "MY_NAME@example.com"
From the command line, change into the repository directory.
Set your username:
git config user.name "FIRST_NAME LAST_NAME"
Set your email address:
git config user.email "MY_NAME@example.com"
Verify your configuration by displaying your configuration file:
cat .git/config
Sourcetree adds your name and email address to your configuration files automatically when you log in with your Atlassian account. Use these steps if you'd like to update your global username/email or add a repository-specific username/email. After you set your global configuration, repository-specific configuration is optional.
(macOS) From the Sourcetree menu, select Preferences.
(Windows) From the Tools menu, select Options.
Select the General tab if it's not already selected.
Under Default user information, update your Full name and Email address.
From the repository in Sourcetree, click Settings.
From the dialog that opens, select the Advanced tab.
If Use global user settings is selected, remove the checkmark.
Update Full name and Email address with the username/email details you want to use.
Was this helpful?