[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Postgres-xc-general] [GENERAL] cloning postgres-xc





On Wed, Feb 13, 2013 at 1:28 PM, Zenaan Harkness <zen@freedbms.net> wrote:
On 2/13/13, Zenaan Harkness <zen@freedbms.net> wrote:
> # this resulted in only 8.6MiB download just now,
> # on an up-to-date pg.git repo.
This quantity of data looks correct, half of it being due to the data in doc-xc/.

$ git remote set-branches --add master pgxc/master
fatal: No such remote 'master'

I am not a GIT specialist, but in order to get all the branches, do only that:
git remote add -f pgxc git://postgres-xc.git.sourceforge.net/gitroot/postgres-xc/postgres-xc

You will be able to see all the remote branches available with "git branch -a"
In this case, remote branches will be listed as remotes/pgxc/master, remotes/pgxc/REL1_0_STABLE, or whatever.

Then checkout a branch, here master, with that:
git branch --track pgxc-master pgxc/master
git checkout pgxc-master
This will create a branch called pgxc-master set to track the remote PGXC master branch when doing a git pull on this branch. Replace pgxc-master by the name you wish.
--
Michael

Reply to: