It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

8 votes
Answer accepted

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

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

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
Posted in Off-topic

Do you still play the same games you played when you were a kid?

Months ago, I was walking in a huge grocery store and I went to the toys aisle and found a jigsaw puzzle that was more than 50% off, and I thought "why not? It will be fun and it can be a beautiful f...

257 views 24 10
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you