Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,251,008
Community Members
 
Community Events
164
Community Groups

Migrating to a new computer

Hi all,

My hard drive died and I am in the need to re-install sourcetree in a new one.

Luckily I have access to a backup of the old HD. Would anyone please tell me how to import the settings from the backup? I would not want to re-add every single repository by hand (besides, I might not even remember them all, or have their details).

Thank you very much

1 answer

1 accepted

5 votes
Answer accepted
rsperafico Atlassian Team May 14, 2014

Hi Tom,

Please, have a look if you have ~/Library/Application Support/SourceTree/browser.plist and ~/Library/Application Support/SourceTree/hostingservices.plist firstly. This will restore the bookmarks and the hosting services in your hosting list in SourceTree.

On Windows the data you want is in %USERPROFILE%\AppData\Local\Atlassian\SourceTree.

Secondly, you'll want to backup all your repositories and restore them to the exact same location afterwards. Even the username of the user needs to be the same as SourceTree uses absolute paths. For example if you had /Users/Steven/Documents/Repositories/ and there were repositories in there, then that's where they'll need to go to afterwards.

If you use SSH keys then you'd need the contents of ~/.ssh/ also. Please, have a look if you have created a ~/.ssh/config file. If so, please have a look if you have IdentityFile pointing to a different location from ~/.ssh/. In case you have that, make sure of copying the key-pair under that location.

In case you were using Keychain, you can export/import keys but not passwords. Just hit Cmd+Space and type "Keychain Access" and take a look at what you might need. For HTTPS you may need to re-enter and remember passwords for them to be put back in the keychain when you restore everything.

Kind regards,
Rafael

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

51,089 views 124 26
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you