views:

38

answers:

1

OK, total noob question, for msysgit on Windows 7, but I have a remote repository (on unfuddle), create on one PC, and now I want to pull it down to another PC. I tried 'Fetch' using Git Gui, but the folder still only has a .git subfolder. It took a while pulling it down, so I assume there is something in the repo, but how do I check it out to a working copy. Nothing I have tried seems to work.

SOLUTION: It's not directly in his answer, but VonC below pointed me to the unfuddle help documentation for Git, which is as terse as the Git man-pages are dense. The follwing single command got me the working copy and local repository I needed:

$ git clone [email protected]:subdomain/abbreviation.git
+2  A: 

Following the Git documentation on Unfuddle, did you declare your unfunddle repo as a remote?

$ cd /path/to/repository
$ git remote add unfuddle [email protected]:subdomain/abbreviation.git

Try also gitk --all: if the fetch has succeded, you should the remote tracking branches (like unfuddle/master). You can then merge it to your master branch in order to finally see files in your (still empty) working tree.
You could also have done a git pull to combine the two steps together (fetch+merge). See this blog post for illustration.


Actually, the OP ProfK reports a cloning issue:

I did already have the unfuddle remote added

git clone [email protected]:subdomain/abbreviation.git

is more suited to get a local repo with the right remote already added to it.

VonC
@VonC, thanks, but I did already have the unfuddle remote added, but you reminded me about their documentation. See me edits.
ProfK
@ProfK: glad to see you did find the right command. I have included it in this answer.
VonC