# Git clone errors

**URL:** <https://forums.plex.tv/t/git-clone-errors/330>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [September 4, 2008, 2:54am UTC](https://forums.plex.tv/t/git-clone-errors/330 "2008-09-04T02:54:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gentoo](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gentoo/32/38_2.png) [@gentoo](https://forums.plex.tv/u/gentoo)\
**Post date:** [September 4, 2008, 2:54am UTC](https://forums.plex.tv/t/git-clone-errors/330/1 "2008-09-04T02:54:59Z")

</div>

EDIT: IGNORE… all i had to do was to git branch --track statement… and all worked like a charm…  
  
  
  
  
  
  
  
  
  
  
  
I tried to redo the git clone all over again, however i get this error  
  
  
  
warning: remote HEAD refers to nonexistent ref, unable to checkout.  
  
  
  
all i get is a new plex directory and a .git directory with various git stuff…any pointers… Tried googling… didnt get anything worth while…  
  
  
  
all i am doing is the git clone git://github.com/elan/plex.git

---

<div class="post-metadata">

**Author:** ![pundy](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@pundy](https://forums.plex.tv/u/pundy)\
**Post date:** [September 4, 2008, 8:26am UTC](https://forums.plex.tv/t/git-clone-errors/330/2 "2008-09-04T08:26:45Z")

</div>

I believe this is because Elan’s Plex git doesn’t have a master branch. You should be able to do a git checkout and go from there without any issues. (i.e basically ignore the error message)

---

<div class="post-metadata">

**Author:** ![bjarki](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bjarki](https://forums.plex.tv/u/bjarki)\
**Post date:** [January 2, 2009, 8:15pm UTC](https://forums.plex.tv/t/git-clone-errors/330/3 "2009-01-02T20:15:32Z")

</div>

> [@](#):
>
> EDIT: IGNORE… all i had to do was to git branch --track statement… and all worked like a charm…  
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> I tried to redo the git clone all over again, however i get this error  
>   
>   
>   
> warning: remote HEAD refers to nonexistent ref, unable to checkout.  
>   
>   
>   
> all i get is a new plex directory and a .git directory with various git stuff…any pointers… Tried googling… didnt get anything worth while…  
>   
>   
>   
> all i am doing is the git clone git://github.com/elan/plex.git

  
  
Hi I'm having the same problem, and I'm new to git, can you tel me what git command you wrote to get it working ?

---

<div class="post-metadata">

**Author:** ![llasting](https://avatars.discourse-cdn.com/v4/letter/l/a587f6/32.png) [@llasting](https://forums.plex.tv/u/llasting)\
**Post date:** [February 16, 2009, 10:45pm UTC](https://forums.plex.tv/t/git-clone-errors/330/4 "2009-02-16T22:45:07Z")

</div>

> [@](#):
>
> EDIT: IGNORE… all i had to do was to git branch --track statement… and all worked like a charm…
> 
> > [@](#):
> >
> > Hi I'm having the same problem, and I'm new to git, can you tel me what git command you wrote to get it working ?

  
  
...same here. I will be great if someone can give us hint or fix GIT repo...  
  
TNX a lot!

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [February 16, 2009, 10:47pm UTC](https://forums.plex.tv/t/git-clone-errors/330/5 "2009-02-16T22:47:14Z")

</div>

As pundy noted above, there is no master branch; instead, there are v0.5 and v0.7 branches.  
  
  
  
If you do:

```auto

$ git checkout v0.5

```

  
  
you'll get a working tree. The same holds for v0.7.  
  
Sorry for the confusion.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:18pm UTC](https://forums.plex.tv/t/git-clone-errors/330/6 "2019-12-20T20:18:54Z")

</div>

Closed on December 20, 2019, 8:18pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
