Why are the commits I make from my own PC shown as unknown?

I have already set my global username/email and a repository specific username/email from the SourceTree terminal and it works for the web updates. But still the commits I make from my own PC are shown as unknown to myself and my teammates. How can I fix this problem? Also, the terminal shows my commands under my PC's name, could it be the cause of this problem?

Thanks in advance!

1 answer

1 accepted

The "unknown" and using your PC's name would suggest that your own PC's local copy of the git repository doesn't have an email configured.

On your own PC open a terminal and `cd` to your git repository. Run the following the command to config your email address.

`git config --global user.email "MY_NAME@example.com"`

To make your old commits display the correct user you can add an alias for your PC's name in your BitBucket repository: https://confluence.atlassian.com/display/BITBUCKET/Set+your+username+for+Bitbucket+actions#SetyourusernameforBitbucketactions-Aliasconfiguration 

Thank you, Alan! It did help to solve my problem. Also, I had forgot to set the name from SourceTree/Options.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,445 views 26 12
Join discussion

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