After clone

git checkout -b my_branch origin/my_branch

If you want to try without recloning you need to delete the local  
my_branch you created

Git branch -D my_branch

On Jul 1, 2009, at 1:02 PM, Josh <> wrote:

> I am having trouble creating a branch, and then pulling from github.
> This is what I have done:  Cloned master, then ran the following
> commands: git branch my_branch, git checkout my_branch, git pull
> origin my_branch, and then it tries to merge the whole thing and needs
> update on every file.  Also I tried a git fetch origin my_branch and
> then I get errors.  Should I be doing a merge of some sort?
> Am I not taking the correct steps to create a local branch (other than
> master), and successfully pull from github?
> Thanks in advance,
> Josh
> >

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
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to