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
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
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

564 views 1 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