From: Martin Langhoff Date: Thu, 12 Apr 2007 23:50:52 GMT Subject: Re: [RFC] git-clone: add --track support Message-ID: <461EC5DC.6060903@catalyst.net.nz> In-Reply-To: <87slb5tbvu.wl%cworth@cworth.org> Carl Worth wrote: > Is this correct sequence for the operation in 1.5.1 ? > > git clone > cd > git branch --track origin/ > git checkout branch > git pull # as needed > Actually you don't need the git-checkout line git clone cd git branch --track origin/ git pull # as needed > I'd love to get that down to: > > git clone and > > cd > git pull # as needed That's what this patch does. > and then adding a subsequent branch to track would be: > > git track and > > git checkout > git pull # as needed If your tree is reasonably clean (so that the implied git-checkout won't fail), then on 1.5.1 this Just Works git branch --track origin/ git pull # as needed cheers, m -- ----------------------------------------------------------------------- Martin @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St OFFICE: +64(4)916-7224 UK: 0845 868 5733 ext 7224 MOB: +64(21)364-017 Make things as simple as possible, but no simpler - Einstein -----------------------------------------------------------------------