Change git username in sourcetree?

I installed sourcetree, connected to my git repo, and was able to successfully clone, branch, push, etc. I then changed my git username (it wasn't very professional!) and now I can't use sourcetree at all. It asks me for the password for my old username, and I can't find a way to change that field.

EDIT: I'm using OSX

2 answers

if your on Windows try clearing your credentials here..

Control Panel\All Control Panel Items\Credential Manager

Clear them for the git server....

I had the same problem, and it was very difficult to find. As far as I can tell, for Mac Sourcetree, this is the ONLY way to get to these settings:

  1. Go to File -> New/Clone
  2. Next to the Filter Repositories box is a cog (see picture below). Click that and choose Settings.
  3. In the resulting popup window, you should see your old credentials and be able to update them.


Screen Shot 2015-11-16 at 10.18.05 AM.png


Hope that helps!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,220 views 4 2
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