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.

Thanks.

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: https://bitbucket.org

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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

241 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot