I am looking to format my Mac and reinstall everything including the new Mountain Lion. I currently have SourceTree on version 1.6.0.1. 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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the answer for version 1.6.4.1 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.