On Sun, 22 Mar 2015 16:20:24 -0700 (PDT)
Xtian Simon <xtiansi...@gmail.com> wrote:

> 4) Next I pushed to origin (site.git) to make sure I have the latest
> and greatest of both Live and Test:
>   `test$ git push -u origin test`
>   `live$ git push -u orign live`
> 5) I updated the server info
>   $git update-server-info
> 6) Cloned from remote to local
>   $ git clone http://mysite.com/dir/to/site.git
>   => Viola! Now I have site/ 
> I'm expecting to get a Repo with both Test, Live branches. 
> But I'm only getting one branch (master) and it's the live branch.
> What did I do wrong in this setup?

Does running the command

  $ git branch -a

shows you both "test" and "live" branches?
They will supposedly be presented as "remote/origin/test" and
"remote/origin/live", and will be painted in red if you have colors
available/enabled on your terminal and default coloring settings.

If yes, then you have merely fell victim of a common misunderstanding
of how local and remote branches relate to each other in Git.
I've tried to explain these differences in depth at [1] so you're
welcome to read it.  A classic (and more accessible if as well more
dumbed-down) explanation is at [2].

1. https://groups.google.com/d/msg/git-users/mJ0iOIZO8ak/M5WpwNix2lkJ
2. http://git-scm.com/book/en/v2/Git-Branching-Remote-Branches

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to