Re: Creating new remote branch in git?

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: Creating new remote branch in git?
Дата
Msg-id
201106112249.p5BMnfx10508@momjian.us
Ответ на
Список
Дерево обсуждения
Creating new remote branch in git? Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating new remote branch in git? Alex Hunsaker <badalex@gmail.com>
Re: Creating new remote branch in git? Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating new remote branch in git? Joe Abbate <jma@freedomcircle.com>
Re: Creating new remote branch in git? Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating new remote branch in git? Joe Abbate <jma@freedomcircle.com>
Re: Creating new remote branch in git? Gurjeet Singh <singh.gurjeet@gmail.com>
Re: Creating new remote branch in git? Magnus Hagander <magnus@hagander.net>
Re: Creating new remote branch in git? Robert Haas <robertmhaas@gmail.com>
Re: Creating new remote branch in git? Alex Hunsaker <badalex@gmail.com>
Re: Creating new remote branch in git? Greg Smith <greg@2ndQuadrant.com>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Robert Haas <robertmhaas@gmail.com>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Andrew Dunstan <andrew@dunslane.net>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Alvaro Herrera <alvherre@commandprompt.com>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Robert Haas <robertmhaas@gmail.com>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Magnus Hagander <magnus@hagander.net>
Re: Creating new remote branch in git? Bruce Momjian <bruce@momjian.us>
Re: Creating new remote branch in git? Andrew Dunstan <andrew@dunslane.net>
Re: Creating new remote branch in git? Alex Hunsaker <badalex@gmail.com>
Re: Creating new remote branch in git? Andrew Dunstan <andrew@dunslane.net>
Greg Smith wrote:
> On 06/10/2011 12:19 AM, Alex Hunsaker wrote:
> > It looks like if you push the remote branch first everything should work nicely:
> > git checkout master
> > git push origin origin:refs/heads/REL9_1_STABLE
> > git fetch # fetch the new branch
> > git checkout REL9_1_STABLE
> 
> This is basically the state of the art right now for the most frequently 
> deployed versions of git.  I don't think checking out master first is 
> necessary though.
> 
> Potentially useful automation/trivia for alternate approaches includes:
> 
> 1) Write a little script to do this messy chore, so you don't have to 
> remember this weird "create a new branch using a full refspec" syntax.  
> There is an example named git-create-branch along with a short tutorial 
> on this subject at 
> http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/
> 
> 2) Use git_remote_branch https://github.com/webmat/git_remote_branch 
> which is the swiss army knife of remote branch hackery automation.
> 
> 3) Rather than manually hack the config files, use "git config" to do 
> it.  Not sure if this is completely workable, but something like this 
> might connect the newly created branch to your local one after pushing 
> it out, without actually opening the config with an editor:
> 
> git config branch.REL9_1_STABLE.remote origin
> git config branch.REL9_1_STABLE.merge refs/heads/REL9_1_STABLE
> 
> 4) Use a system with git>=1.7.0, which adds:
> 
> git branch --set-upstream REL9_1_STABLE origin/REL9_1_STABLE

Uh, I think someone needs to add this to our wiki:
http://wiki.postgresql.org/wiki/Working_with_Githttp://wiki.postgresql.org/wiki/Committing_with_Git

I needed this when using git-new-workdir so at least it is needed there;
I am unclear how wide this is needed so I cannot add it.

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + It's impossible for everything to be true. +

В списке pgsql-hackers по дате отправления
От: Noah Misch
Дата:
От: Robert Haas
Дата:
FAQ