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

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:

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,129 views 4 2
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