Re: git-branch and git-remotes confusion
- From
Jeff King <peff@peff.net>
- Date
- Apr 10, 2007, 12:25 UTC
- Message-ID
- <20070410122516.GA27388@coredump.intra.peff.net>
- In-Reply-To
- <46a038f90704100505i7bdd88a8q52186f7ce7ff0cdf@mail.gmail.com>
On Wed, Apr 11, 2007 at 12:05:17AM +1200, Martin Langhoff wrote:
> git-clone http://git.catalyst.net.nz/git/moodle-r2.git > git-branch --track origin/mdl18-olpc my18-olpc
Your arguments to git-branch are backwards. It should be:
git-branch --track my18-olpc origin/mdl18-olpc
Also note that --track didn't show up until 1.5.1. Other than that, it should do what you expect (check out your .git/config before and after to see the impact of --track).
-Peff