{"thread":{"id":"21602","subject":"error while cloning a remote repository","startedAt":"2009-11-13T06:38:32Z","lastAt":"2009-11-13T15:10:24Z","messageCount":2,"participants":["Shameem Ahamed","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"127491","messageId":"811075.82054.qm@web94704.mail.in2.yahoo.com","threadId":"21602","inReplyTo":null,"subject":"error while cloning a remote repository","fromName":"Shameem Ahamed","fromEmail":"shameem.ahamed@yahoo.com","sentAt":"2009-11-13T06:38:32Z","receivedAt":"2009-11-13T06:38:32Z","isPatch":false,"sender":{"key":"shameem.ahamed@yahoo.com","avatar":null},"body":"Hi,\n\nI ran in to a warning message while cloning a remote repository.\n\nThe message is \n\nwarning: remote HEAD refers to nonexistent ref, unable to checkout.\n\nAfter the cloning i couldn't see any remote files. The .git folder is created successfully.\n\nRegards,\nShameem\n\n\n      \n"},{"id":"127511","messageId":"20091113151024.GR11919@spearce.org","threadId":"21602","inReplyTo":"811075.82054.qm@web94704.mail.in2.yahoo.com","subject":"Re: error while cloning a remote repository","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-11-13T15:10:24Z","receivedAt":"2009-11-13T15:10:24Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Shameem Ahamed <shameem.ahamed@yahoo.com> wrote:\n> I ran in to a warning message while cloning a remote repository.\n...\n> warning: remote HEAD refers to nonexistent ref, unable to checkout.\n> \n\nContact the repository owner and let them know.  The error occurs because\ntheir HEAD symbolic reference points to a branch that does not exist.  They\ncan fix this by running `git symbolic-ref HEAD refs/heads/$branch` to point\nat the correct default branch for their repository.\n\n> After the cloning i couldn't see any remote files. The .git folder\n> is created successfully.\n\nI think you may be able to do:\n\n  $ git branch -r\n  $ git reset --hard $branch\n\nwhere $branch is one of the origin/ names printed by branch -r.\nBecause the source repository didn't tell us what default branch name\nyou should use (it has a bad HEAD) I can't suggest what name, you'll\nhave to figure it out on your own, or ask the repository owner.\n\n-- \nShawn.\n"}]}