On Wed, Apr 07, 2010 at 12:36:22PM -0700, Jacob Helwig wrote:
> The problem is that git fetch doesn't _create_ branches.
> 
> When you downloaded the branch with "git fetch origin jquery", it
> stored the ref locally as FETCH_HEAD ("cat .git/FETCH_HEAD" if you
> want to see the details).  If you want to create a local branch based
> off of the remote jquery branch, you can "git fetch && git checkout -b
> jquery origin/jquery".

This doesn't make sense. If the git checkout was to work, it would have
to create at least the remote branch remote/origin/jquery, but
apparently it does not do even that and only updates the FETCH_HEAD.


A key note in git-fetch(1) is:

> A parameter <ref> without a colon is equivalent to <ref>: when
> pulling/fetching, so it merges <ref> into the current branch without
> storing the remote branch anywhere locally.

So, just Don't Do That - just specify `git fetch` and it should
pick up any missing branches. Or spell it out as jquery:jquery.

(I think this default is fairly unhappy, perhaps git fetch should warn
you if you use jquery instead of jquery:. Please ask about it on
g...@vger if you care about it. :-)

-- 
                                Petr "Pasky" Baudis
http://pasky.or.cz/ | "Ars longa, vita brevis." -- Hippocrates

-- 
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-us...@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