Re: Creating new remote branch in git? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Creating new remote branch in git?
Date
Msg-id 9372.1307678535@sss.pgh.pa.us
Whole thread Raw
In response to Re: Creating new remote branch in git?  (Alex Hunsaker <badalex@gmail.com>)
Responses Re: Creating new remote branch in git?
Re: Creating new remote branch in git?
List pgsql-hackers
Alex Hunsaker <badalex@gmail.com> writes:
> On Thu, Jun 9, 2011 at 21:05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> In the next couple of days it's going to be time to branch off
>> REL9_1_STABLE from master, and I realized that I am pretty foggy on
>> how to do that in git.  I suppose it's some variant of
>> 
>> git checkout master             # if not there already
>> git branch REL9_1_STABLE
>> git push origin REL9_1_STABLE
>> 
>> but it's not clear to me whether any options are needed to ensure that
>> the right branch tracking behavior gets set up.

> That looks right, and yeah that won't setup that branch to track
> upstream for you. However, it should work for anyone that gets that
> branch as part of a fetch/pull. ( that is it will work like any other
> remote branch )

So creating the branch trashes my own repo?  Surely there's a better
way.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alex Hunsaker
Date:
Subject: Re: Creating new remote branch in git?
Next
From: Joe Abbate
Date:
Subject: Re: Creating new remote branch in git?