Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: git-branch and git-remotes confusion

From: Jeff King <hidden>
Date: 2016-06-15 22:43:03

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help