How to Backup SourceTree

I am looking to format my Mac and reinstall everything including the new Mountain Lion. I currently have SourceTree on version I have over a hundred repos setup. Rather than cloning all my repos and losing all my preferences and logins etc. Is there a way to backup my entire SourceTree including all my repos, settings, logins etc. So when I have reinstalled my OS I can just setup SourceTree as it was?

2 answers

1 accepted

This widget could not be displayed.

Hi Steven,

You'll want to backup ~/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.

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 we use absolute paths. For example if it was /Users/Steven/Documents/Repositories/ and there was a load of repositories in there, then that's where they'll need to go afterwards.

If you use SSH keys then you'd need to the contents of ~/.ssh/ also.

For things in the 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.

Hope that helps

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

This widget could not be displayed.

What is the answer for version and also for 1.9? I have some files in the ~/Library/Application Support/SourceTree but it looks like they haven't be updated for a while.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

140 views 16 7
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