add a local git repo in SourceTree

Hi. I have a local workspace with some projects, sincronized with a remote git repo. ¿How to add the existing working copy (git local repository) to SourceTree?

3 answers

1 accepted

This widget could not be displayed.

Lots of ways! :)

  1. Drag & drop the folder from Finder into the Bookmarks window to add it to your bookmarks
  2. Drag & drop the folder onto your dock icon
  3. File > Open (Cmd-O) and browse to the path
  4. Click 'Add Repository' on the bookmarks window, select the 'Add Working Copy' tab and browse to the local repo

This widget could not be displayed.

Yeah, very intuitive. I could find the way just five after doing the question. Thanks!.

This widget could not be displayed.

Hello,
I have a problem with local repo: if I add a repository with "Add Working Copy" it seems to be ok, SourceTree tells me that it a git repository, but when I open it I have this error: "'git status' failed with code 128:'fatal: Not a git repository (or any of the parent directories): .git".

What can I do?

The check when you provide a path to add as a working copy is actually quite rudimentary, it just checks for the presence of the .git folder. If git is failing when it's added and *real* git commands start being called on it, that means that the .git folder is a red herring and that it really isn't a git repo after all.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Teamwork

The tools we make for teams? We use them every day at Atlassian to get shit done (and it works).

I’m Jess, a Product Marketer for Jira Software Server and Data Center, and now a huge fan of our products. Read on for a 90 day, new-hire perspective on what it’s like to standardize on the Atlassian...

38 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