From: Andrew Ardill Date: Mon, 17 Dec 2012 05:52:52 GMT Subject: Re: How to specify remote branch correctly Message-ID: In-Reply-To: <1355722245-ner-6603@calvin> On 17 December 2012 16:30, Tomas Carnecky wrote: > 'git checkout foo' has special meaning if a local branch with that name > doesn't exist but there is a remote branch with that name. In that case it's > equivalent to: git checkout -t -b foo origin/foo. Because that's what people > usually want. This is true, but I don't think it is documented. Does anyone know if this is documented anywhere in particular? The git checkout man pages seem to not mention it, and the git branch page doesn't seem to mention it either, but perhaps I am just missing it? In any case, might be useful to make this behaviour more clear. Regards, Andrew Ardill