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

From Bruce Momjian
Subject Re: Creating new remote branch in git?
Date
Msg-id 201106140254.p5E2sbY18872@momjian.us
Whole thread Raw
In response to Re: Creating new remote branch in git?  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Creating new remote branch in git?
List pgsql-hackers
Alvaro Herrera wrote:
> Excerpts from Bruce Momjian's message of lun jun 13 18:38:46 -0400 2011:
> > Andrew Dunstan wrote:
> 
> > > Is putting remotes in your ~/.gitconfig  good practice? I certainly 
> > > don't have any in mine.
> > 
> > Putting 'github' in there allows me to push/pull from github branches
> > without having to specify the github URL.
> 
> I think his point is that they are more properly specified in each
> repo's .git/config file, not the global $HOME/.gitconfig.  If you were
> to check out some other, unrelated project, you could end up pushing
> unrelated branches to PG's repo ...  Not sure if this is really
> possible, but it certainly seems scary to do things that way.

I understand now --- that it is risky to create an "origin" branch in
~/.gitconfig.  I am now using an alias:
[alias]        pgclone = clone ssh://git@gitmaster.postgresql.org/postgresql.git

I assume the 'github' branch in ~/.gitconfig is fine.

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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_trgm: unicode string not working
Next
From: Alvaro Herrera
Date:
Subject: Re: pgbench cpu overhead (was Re: lazy vxid locks, v1)