Code

checkout --track: make up a sensible branch name if '-b' was omitted
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sat, 9 Aug 2008 14:00:12 +0000 (16:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Aug 2008 23:37:28 +0000 (16:37 -0700)
commitbb0ceb6264fa1aea6e68e07cb13cd9a88473febb
tree3bb234811f3e3ff627dd73d83e99cf0adfa6eb17
parentac39efbdf3d41443c40166b7578b7fb87c2f3b60
checkout --track: make up a sensible branch name if '-b' was omitted

What does the user most likely want with this command?

$ git checkout --track origin/next

Exactly.  A branch called 'next', that tracks origin's branch 'next'.
Make it so.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt
builtin-checkout.c
t/t7201-co.sh