Git branch command -- Need for advice

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Git branch command -- Need for advice

Hannes Hirzel
Hello

Herby has opened this branch

    https://github.com/amber-smalltalk/amber/tree/requirejs-optimizer

It includes the grunt load command for the requirejs-optimizer. Now it
is left with filling in the right configuration object into the
gruntfile.

I would like to get a local branch of this so that I can work on it
and that I can issue pull request into this branch.

I do

    git fetch upstream

    git branch

lists local branches



    git branch -a

lists all branches (i.e. it includes the ones from upstream and in particular
   upstream/requirejs-optimizer


I can switch to it with

    git checkout upstream/requirejs-optimizer

but probably that is not what I should do because I cannot commit to it? Right?

What is the proper sequence of commands to proceed in this matter?

Thank you for the answer in advance.

Hannes

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Git branch command -- Need for advice

Herby Vojčík


H. Hirzel wrote:
> Hello
>
> I can switch to it with
>
>      git checkout upstream/requirejs-optimizer
>
> but probably that is not what I should do because I cannot commit to it? Right?

after you issued the previous command, do

  git checkout -b requirejs-optimizer

It creates branch from actual position.

> What is the proper sequence of commands to proceed in this matter?
>
> Thank you for the answer in advance.
>
> Hannes

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.