I am looking to format my Mac and reinstall everything including the new Mountain Lion. I currently have SourceTree on version 126.96.36.199. 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?
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
It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...
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!
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