Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to logout / switch accounts in Sourcetree

After installing Sourcetree, you are prompted to log into your Atlassian account. However, once you are logged in, there is no logout option to log out or switch accounts. How do I do this?

like image 369
Nate Avatar asked Jul 15 '16 18:07

Nate


People also ask

How do I logout from SourceTree?

However, once you are logged in, there is no logout option to log out or switch accounts. To do this, Close Sourcetree. Navigate to <username>\AppData\Local\Atlassian\SourceTree\

How do I change user info in SourceTree?

Make sure "Allow Sourcetree to modify your global Git and Mercurial config files" is unchecked. Open your . gitconfig (C:\Users\<username>\. gitconfig), and under '[user]' change your desired username.


1 Answers

After installing Sourcetree, you are prompted to log into your Atlassian account. However, once you are logged in, there is no logout option to log out or switch accounts.

To do this,

  1. Close Sourcetree
  2. Navigate to <username>\AppData\Local\Atlassian\SourceTree\
  3. Delete accounts.json after making a backup.
  4. Restart Sourcetree.

You should see the following dialog and then be prompted to login to your Atlassian account.

enter image description here

Note: I'm using Windows 10, but I assume it is the same for other systems.

like image 114
Nate Avatar answered Sep 17 '22 17:09

Nate