The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add working copy and SourceTree wipes the .git folder

jeffmagill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 3, 2014

I just updated to v2.0.2 so maybe I'm just misunderstanding something. I cloned a git repo using terminal. Afterwards, I decided I wanted to work in SourceTree instead so I clicked `[ + New Repository ]` > `Add existing local repository`, found the directory and clicked ok. The repo appears in the repo list and I open it.

There is nothing there! Nothing under any of the views. Nothing when I switch to view the full branch. I try to pull but it doesn't find any remotes or branches. No history, but when I switch to the history view, I get,

> 'git log' failed with code 128:'fatal: bad revision 'master'

So I go back to terminal and type `git branch` and there are none! All my files are intact but otherwise, it looks like this is either a brand new repo, or, perhaps, a corrupted one.

I have reproduced this several times using different repositories with different remotes. Am I doing something wrong or did I stumble on a bug?

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 4, 2014

Is SourceTree set up to use "embedded" or "system" git? If it is using "embedded", but you initially cloned the repo with a newer version of git, there may be properties about the repository that causes SourceTree's older, embedded version to panic.

jeffmagill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2014

Yes. That was it. Actually, my system Git was behind at 1.7 while ST was using 1.8. This appears to have done the trick. Thanks a million!

TAGS
AUG Leaders

Atlassian Community Events