How do I find the repository created by SourceTree?

I just installed SourceTree on Mac Lion and created the repository. It's all working since I have a few test check-ins logged. But I can not find the repository. I need this so I can back up the file.


3 answers

This widget could not be displayed.

When you create a Git or Mercurial repository, you actually do it in the same folder as the source files that you're putting under version control. So the repository is contained in a hidden folder called '.git' or '.hg' underneath that source folder. Finder doesn't display hidden folders by default, but it's there; if you want to quickly jump to your source folder in Finder, you can do it from the Actions Menu > Show in Finder, or you can also do Actions Menu > Open In Terminal, where 'ls -la' will show you the hidden .hg or .git folders. This is standard behaviour for Mercurlal and Git.

As far as backing up, the best way to do that is to push your changes to a server. If you're looking for convenience, Bitbucket allows you an unlimited number of private repositories for free (up to 5 users), so that's a good way to make sure your projects are backed up:

This widget could not be displayed.

Thanks. Until I sign up for BitBucket, does TimeMachine back up those hidden files created by SourceTree?

This widget could not be displayed.

Yes, Time Machine backs up all files including hidden ones.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

861 views 2 3
Read article

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