How to commit to hal-0_5_11-branch

Danny Kukawka danny.kukawka at web.de
Tue Mar 18 10:48:21 PDT 2008


On Dienstag, 18. März 2008, Joe Marcus Clarke wrote:
> How do I checkout and commit to hal-0_5_11-branch?  I've tried git
> checkout hal-0_5_11-branch and git pull origin
> hal-0_5_11-branch:hal-0_5_11-branch, but neither properly set my branch
> to hal-0_5_11-branch.  I either get that the branch does not exist, or
> the merge fails because NEWS is not up to date, or there are conflicts
> in the hotplug.c file.
>
> Every git tip sheet I've read says that this should be really simple,
> but I can't find a combination that works.

Git is everything, but not that simple (IMO), it really lacks good tutorials 
for such normal stuff as commit to a branch, create a remote branch ... this 
really sucks. 

I found that in a "git for SVN user"-tutorial and it worked for me:

1) checkout git master
2) git checkout --track -b hal-0_5_11-branch origin/hal-0_5_11-branch
3) commit your changes to the local branch (hal-0_5_11-branch)
4) push the commit

Danny



More information about the hal mailing list