[git-users] Small mystery

2010-04-07 Thread Pito Salas
I thought I understood this but here's a puzzle for me: 1) Download jquery branch locally: $ git fetch origin jquery From github.com:trustthevote/ElectionManager * branchjquery - FETCH_HEAD Looks like it worked, right? 2) List all branches. Where is it? $ git branch -a

Re: [git-users] Small mystery

2010-04-07 Thread Jacob Helwig
On Wed, Apr 7, 2010 at 11:54, Pito Salas r...@salas.com wrote: I thought I understood this but here's a puzzle for me: 1) Download jquery branch locally: $ git fetch origin jquery From github.com:trustthevote/ElectionManager  * branch            jquery     - FETCH_HEAD Looks like it worked,

Re: [git-users] Small mystery

2010-04-07 Thread Pito Salas
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,

Re: [git-users] Small mystery

2010-04-07 Thread Petr Baudis
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