From: | Joe Abbate <jma(at)freedomcircle(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alex Hunsaker <badalex(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Creating new remote branch in git? |
Date: | 2011-06-10 04:17:44 |
Message-ID: | 4DF19AE8.3090702@freedomcircle.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 06/10/2011 12:02 AM, Tom Lane wrote:
> Alex Hunsaker <badalex(at)gmail(dot)com> writes:
>> On Thu, Jun 9, 2011 at 21:05, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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.
No, it doesn't trash anything. The branch is just an additional
"pointer" to 'master' (at that point in time). I recommend taking a
look at this:
http://progit.org/book/ch3-5.html
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Alex Hunsaker | 2011-06-10 04:19:17 | Re: Creating new remote branch in git? |
Previous Message | Tom Lane | 2011-06-10 04:02:15 | Re: Creating new remote branch in git? |