Hi Eric,
You should be able to do:

git fetch origin  #This should fetch all remote refs, including the
remote origin/dij without updating anything locally.
git checkout -b dij origin/dij  #this will create a local branch
called dij to track origin/dij

To reverse the effects of your initial pull, you might want to do:
git checkout master
git reset --hard origin/master  #nb, this will destroy any local
changes to origin master.

git pull basically does a git fetch followed by a git merge, which is
not really what you wanted.  Once you have done the above, you should
be able to do "git pull origin" on any branch to update that branch.

Cheers,
Luuk

On Sun, Apr 19, 2009 at 6:12 AM, EricP <parent.eri...@gmail.com> wrote:
>
> Hi Dan,
>
> Thanks for replying to me.
> Here is what I get from my home computer:
>
> $ git branch -a
> * master
>  network
>  origin/master
>  origin/network
>
> As you can see, there is nothing about the "dij" branch that is remote
> and that is
> But this is what I get from the computer at the lab:
>
> $ git branch -a
>  dij
> * master
>  network
>  origin/dij
>  origin/master
>  origin/network
>
> Looks strange...
> Does this give you any insight about what I might have done wrong?
>
> Again, what I did on my lab computer is
> $ git push origin dij
>
> "origin" being a different computer than the one where I work (either
> at home or the lab).
>
> And what I did on my home computer is
> $ git pull origin dij
>
>
> Regards,
>
> - Eric
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to